#include <a_samp>new sweeper;new cp[MAX_PLAYERS][MAX_CPS_AT_HERE];new psettimer[MAX_PLAYERS];new fizetes[MAX_PLAYERS] = 0;#define fizetesplusz 6 //$-t adjon 10 menetenként..#define MAX_CPS_AT_HERE 80public OnFilterScriptInit(){sweeper = CreateVehicle(574,658.09997559,-636.70001221,16.10000038,0.00000000,40,1,10); return 1; }/* sweeper1 = .....;sweeper2 = .....;sweeper3 = .....;sweeper4 = .....;*/public OnPlayerConnect(playerid) { psettimer[playerid] = SetTimerEx(\"pTimer\",500,1,\"i\",playerid); return 1;}stock penz(playerid) return GivePlayerMoney(playerid,fizetes[playerid]);public OnPlayerEnterVehicle(playerid,vehicleid){if(vehicleid == sweeper /*|| vehicleid == sweeper1 || vehicleid == sweeper2 || vehicleid == sweeper3 || vehicleid == sweeper4 */){switch(cp[playerid][MAX_CPS_AT_HERE]){ case 0: SendClientMessage(playerid,0xff0000ff,\"Elkezdted a munkát! Menj bele a cpkbe!\"), cp[playerid][MAX_CPS_AT_HERE] == 1; case 1: cp[playerid][MAX_CPS_AT_HERE] == 2; case 2: cp[playerid][MAX_CPS_AT_HERE] == 3; case 3: cp[playerid][MAX_CPS_AT_HERE] == 4; case 4: cp[playerid][MAX_CPS_AT_HERE] == 5; case 5: cp[playerid][MAX_CPS_AT_HERE] == 6; case 6: cp[playerid][MAX_CPS_AT_HERE] == 7; case 7: cp[playerid][MAX_CPS_AT_HERE] == 8; case 8: cp[playerid][MAX_CPS_AT_HERE] == 9; case 9: cp[playerid][MAX_CPS_AT_HERE] == 10; case 10: cp[playerid][MAX_CPS_AT_HERE] == 11, fizetes[playerid] = fizetes[playerid]+fizetesplusz; case 11: cp[playerid][MAX_CPS_AT_HERE] == 12; case 12: cp[playerid][MAX_CPS_AT_HERE] == 13; case 13: cp[playerid][MAX_CPS_AT_HERE] == 14; case 14: cp[playerid][MAX_CPS_AT_HERE] == 15; case 15: cp[playerid][MAX_CPS_AT_HERE] == 16; case 16: cp[playerid][MAX_CPS_AT_HERE] == 17; case 17: cp[playerid][MAX_CPS_AT_HERE] == 18; case 18: cp[playerid][MAX_CPS_AT_HERE] == 19; case 19: cp[playerid][MAX_CPS_AT_HERE] == 20; case 20: cp[playerid][MAX_CPS_AT_HERE] == 21, fizetes[playerid] = fizetes[playerid]+fizetesplusz; case 21: cp[playerid][MAX_CPS_AT_HERE] == 22; case 22: cp[playerid][MAX_CPS_AT_HERE] == 23; case 23: cp[playerid][MAX_CPS_AT_HERE] == 24; case 24: cp[playerid][MAX_CPS_AT_HERE] == 25; case 25: cp[playerid][MAX_CPS_AT_HERE] == 26; case 26: cp[playerid][MAX_CPS_AT_HERE] == 27; case 27: cp[playerid][MAX_CPS_AT_HERE] == 28; case 28: cp[playerid][MAX_CPS_AT_HERE] == 29; case 29: cp[playerid][MAX_CPS_AT_HERE] == 30; case 30: cp[playerid][MAX_CPS_AT_HERE] == 31, fizetes[playerid] = fizetes[playerid]+fizetesplusz; case 31: cp[playerid][MAX_CPS_AT_HERE] == 32; case 32: cp[playerid][MAX_CPS_AT_HERE] == 33; case 33: cp[playerid][MAX_CPS_AT_HERE] == 34; case 34: cp[playerid][MAX_CPS_AT_HERE] == 35; case 35: cp[playerid][MAX_CPS_AT_HERE] == 36; case 36: cp[playerid][MAX_CPS_AT_HERE] == 37; case 37: cp[playerid][MAX_CPS_AT_HERE] == 38; case 38: cp[playerid][MAX_CPS_AT_HERE] == 39; case 39: cp[playerid][MAX_CPS_AT_HERE] == 40; case 40: cp[playerid][MAX_CPS_AT_HERE] == 41, fizetes[playerid] = fizetes[playerid]+fizetesplusz; case 41: cp[playerid][MAX_CPS_AT_HERE] == 42; case 42: cp[playerid][MAX_CPS_AT_HERE] == 43; case 43: cp[playerid][MAX_CPS_AT_HERE] == 44; case 44: cp[playerid][MAX_CPS_AT_HERE] == 45; case 45: cp[playerid][MAX_CPS_AT_HERE] == 46; case 46: cp[playerid][MAX_CPS_AT_HERE] == 47; case 47: cp[playerid][MAX_CPS_AT_HERE] == 48; case 48: cp[playerid][MAX_CPS_AT_HERE] == 49; case 49: cp[playerid][MAX_CPS_AT_HERE] == 50; case 50: cp[playerid][MAX_CPS_AT_HERE] == 51, fizetes[playerid] = fizetes[playerid]+fizetesplusz; case 51: cp[playerid][MAX_CPS_AT_HERE] == 52; case 52: cp[playerid][MAX_CPS_AT_HERE] == 53; case 53: cp[playerid][MAX_CPS_AT_HERE] == 54; case 54: cp[playerid][MAX_CPS_AT_HERE] == 55; case 55: cp[playerid][MAX_CPS_AT_HERE] == 56; case 56: cp[playerid][MAX_CPS_AT_HERE] == 57; case 57: cp[playerid][MAX_CPS_AT_HERE] == 58; case 58: cp[playerid][MAX_CPS_AT_HERE] == 59; case 59: cp[playerid][MAX_CPS_AT_HERE] == 60; case 60: cp[playerid][MAX_CPS_AT_HERE] == 61, fizetes[playerid] = fizetes[playerid]+fizetesplusz; case 61: cp[playerid][MAX_CPS_AT_HERE] == 62; case 62: cp[playerid][MAX_CPS_AT_HERE] == 63; case 63: cp[playerid][MAX_CPS_AT_HERE] == 64; case 64: cp[playerid][MAX_CPS_AT_HERE] == 65; case 65: cp[playerid][MAX_CPS_AT_HERE] == 66; case 66: cp[playerid][MAX_CPS_AT_HERE] == 67; case 67: cp[playerid][MAX_CPS_AT_HERE] == 68; case 68: cp[playerid][MAX_CPS_AT_HERE] == 69; case 69: cp[playerid][MAX_CPS_AT_HERE] == 70; case 70: cp[playerid][MAX_CPS_AT_HERE] == 71, fizetes[playerid] = fizetes[playerid]+fizetesplusz; case 71: cp[playerid][MAX_CPS_AT_HERE] == 72; case 72: cp[playerid][MAX_CPS_AT_HERE] == 73; case 73: cp[playerid][MAX_CPS_AT_HERE] == 74; case 74: cp[playerid][MAX_CPS_AT_HERE] == 75; case 75: cp[playerid][MAX_CPS_AT_HERE] == 76; case 76: cp[playerid][MAX_CPS_AT_HERE] == 77; case 77: cp[playerid][MAX_CPS_AT_HERE] == 78; case 78: cp[playerid][MAX_CPS_AT_HERE] == 79; case 79:DisablePlayerCheckpoint(playerid), penz(playerid);}}return 1;}public pTimer(playerid);public pTimer(playerid){if(GetPlayerVehicleID(playerid) == sweeper /*|| vehicleid == sweeper1 || vehicleid == sweeper2 || vehicleid == sweeper3 || vehicleid == sweeper4 */){switch(cp[playerid][MAX_CPS_AT_HERE]){ case 0: SendClientMessage(playerid,0xff0000ff,\"Elkezdted a munkát! Menj bele a cpkbe!\"), SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 1: SetPlayerCheckpoint(playerid,670.70001221,-604.09997559,16.20000076,1); case 2: SetPlayerCheckpoint(playerid,678.59997559,-611.00000000,16.20000076,1); case 3: SetPlayerCheckpoint(playerid,678.90002441,-619.40002441,16.20000076,1); case 4: SetPlayerCheckpoint(playerid,678.79998779,-629.20001221,16.20000076,1); case 5: SetPlayerCheckpoint(playerid,679.20001221,-640.20001221,16.20000076,1); case 6: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 7: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 8: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 9: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 10: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 11: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 12: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 13: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 14: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 15: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 16: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 17: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 18: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 19: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 20: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 21: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 22: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 23: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 24: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 25: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 26: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 27: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 28: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 29: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 30: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 31: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 32: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 33: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 34: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 35: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 36: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 37: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 38: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 39: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 40: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 41: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 42: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 43: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 44: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 45: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 46: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 47: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 48: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 49: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 50: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 51: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 52: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 53: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 54: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 55: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 56: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 57: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 58: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 59: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 60: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 61: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 62: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 63: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 64: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 65: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 66: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 67: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 68: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 69: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 70: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 71: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 72: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 73: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 74: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 75: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 76: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 77: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 78: SetPlayerCheckpoint(playerid,660.40002441,-603.40002441,16.20000076,1); case 79: RemovePlayerFromVehicle(playerid), SendClientMessage(playerid,0xff0000ff,\"Sikeresen ledolgoztad a 79 checkpointot!\");}}return 1;}