#include <a_samp>#include <zcmd>#define FUVAR 0009#define COLOR_RED 0xff0000AAnew Fuv[MAX_PLAYERS];new gTeam[MAX_PLAYERS];new Float: Fuv1[15][3] ={ { -285.4836,2662.8330,62.3765}, { -1522.4150,2630.9727,55.5630}, { -2272.3726,2287.8411,4.5473}, { -1935.5901,2380.3997,49.2232}, { -1489.0553,1877.0696,32.3599}, { -1205.6021,1822.9353,41.4458}, { -298.9337,1792.6718,42.5444}, { 2434.2878,738.7759,10.5474}, { 2653.2705,1091.4495,10.5474}, { 2175.2278,1681.5012,10.5474}, { 2180.3855,2522.3506,10.5474}, { 2653.2705,1091.4495,10.5474}, { 1763.9720,2729.0198,10.5630}, { 1081.8708,1839.7916,10.5474}, { 980.7066,1101.8970,10.5474}};new Fuvo[MAX_PLAYERS];CMD:munkaba(playerid, params[]){Fuv[playerid] = 1;SetPlayerCheckpoint(playerid, -144.7087,1078.9078,20.4922, 3.0);return 1;}public OnPlayerStateChange(playerid,newstate,oldstate){new vehicleid = GetPlayerVehicleID(playerid);if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetVehicleModel(vehicleid) == 456 || GetVehicleModel(vehicleid) == 515 && gTeam[playerid] == FUVAR) { SendClientMessage(playerid, COLOR_RED, \"Jóvagy\"); } else { DisablePlayerCheckpoint(playerid); return 1; }return 1;}public OnPlayerUpdate(playerid){new vehicleid = GetPlayerVehicleID(playerid);if(Fuv[playerid] == 2 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && gTeam[playerid] == FUVAR && GetVehicleModel(vehicleid) == 456 || GetVehicleModel(vehicleid) == 515){Fuv[playerid] = 3; SetPlayerCheckpoint(playerid,-306.3483,1505.2061,75.1307,3.0);return 1;}return 1;}public OnPlayerEnterCheckpoint(playerid){new vehicleid = GetPlayerVehicleID(playerid); if(Fuv[playerid] == 1) { DisablePlayerCheckpoint(playerid); gTeam[playerid] = FUVAR; Fuv[playerid] = 2; SetPlayerColor(playerid,0x00d5ffAA);SetPlayerSkin(playerid, 260); return 1; } if(Fuv[playerid] == 3 && gTeam[playerid] == FUVAR && GetVehicleModel(vehicleid) == 515 || GetVehicleModel(vehicleid) == 456) { DisablePlayerCheckpoint(playerid); new rand = random(sizeof(Fuv1));GameTextForPlayer(playerid,\"~w~Pill Rakodunk!\",2000,6);SetTimer(\"Pakol\", 3000, false);Fuv[playerid] = 4;TogglePlayerControllable(playerid, false);Fuvo[playerid] = SetPlayerCheckpoint(playerid,Fuv1[rand][0],Fuv1[rand][1],Fuv1[rand][2],3); return 1; } if(Fuv[playerid] == 4 && gTeam[playerid] == FUVAR && GetVehicleModel(vehicleid) == 515 || GetVehicleModel(vehicleid) == 456) { DisablePlayerCheckpoint(playerid); new rand = random(sizeof(Fuv1));GameTextForPlayer(playerid,\"~w~Pill Rakodunk!\",2000,6);SetTimer(\"Pakol1\", 3000, false);Fuv[playerid] = 3;Fuvo[playerid] = SetPlayerCheckpoint(playerid,Fuv1[rand][0],Fuv1[rand][1],Fuv1[rand][2],3); return 1; } return 1;}forward Pakol(playerid);public Pakol(playerid){TogglePlayerControllable(playerid, true);}forward Pakol1(playerid);public Pakol1(playerid){ GivePlayerMoney(playerid, 5000);TogglePlayerControllable(playerid, true);}
SetTimerEx(\" FÜGGVÉNY NEVE AMELYIKET ELÕHíVÓD! \", 3000, 0,\"e\",playerid);
if(Fuv[playerid] == 3 && gTeam[playerid] == FUVAR && GetVehicleModel(vehicleid) == 515 || GetVehicleModel(vehicleid) == 456) { DisablePlayerCheckpoint(playerid); new rand = random(sizeof(Fuv1));GameTextForPlayer(playerid,\"~r~Varja Felpakolunk!\",3000,6); SetTimerEx(\"Pakol\", 3000, 0,\"e\",playerid);Fuv[playerid] = 4;TogglePlayerControllable(playerid, false);Fuvo[playerid] = SetPlayerCheckpoint(playerid,Fuv1[rand][0],Fuv1[rand][1],Fuv1[rand][2],3); return 1; } if(Fuv[playerid] == 4 && gTeam[playerid] == FUVAR && GetVehicleModel(vehicleid) == 515 || GetVehicleModel(vehicleid) == 456) { DisablePlayerCheckpoint(playerid); new rand = random(sizeof(Fuv1));GameTextForPlayer(playerid,\"~r~Jóvan lepakolunk!\",3000,6);SetTimerEx(\"Pakol1\", 3000, 0,\"e\",playerid);Fuv[playerid] = 3;Fuvo[playerid] = SetPlayerCheckpoint(playerid,Fuv1[rand][0],Fuv1[rand][1],Fuv1[rand][2],3); return 1; }