CMD:kezdfarmer(playerid,params[]){if(GetPVarInt(playerid,\"Farmer\") == Farmer){ if(IsPlayerInRangeOfPoint(playerid, 20.0, 1929.1694,170.6489,37.2813)) { new Float:X,Float:Y,Float:Z; new Float:Angle,int1; new LVehicleID = GetPlayerVehicleID(playerid); GetPlayerPos(playerid, X,Y,Z); GetPlayerFacingAngle(playerid,Angle); SpawnedVehicles[playerid] = CreateVehicle(531, X+3,Y,Z, Angle, 0, 0, -1); LinkVehicleToInterior(LVehicleID,int1); int1 = GetPlayerInterior(playerid); PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0); SendClientMessage(playerid,COLOR_RED,\"Elkezted a munkát! Menj a Piros Checkpointokba\"); new rand1 = random(sizeof(FARM)); SetPlayerCheckpoint(playerid, FARM[rand1][0],FARM[rand1][1],FARM[rand1][2], 4); GameTextForPlayer(playerid, \"~g~Elkezted a munkát!\", 3000, 3);}}else if(GetPVarInt(playerid,\"Farmer\") == Munka_Nincs){SendClientMessage(playerid,COLOR_RED,\"Nem vagy Farmer!(/farmer)\");}else{SendClientMessage(playerid,COLOR_RED,\"Nem vagy a megfelelõ helyen!(/farmer)\");}return 1;}
if(GetVehicleModel(SpawnedVehicles[playerid])) { DestroyVehicle(SpawnedVehicles[playerid]); }new Float:X,Float:Y,Float:Z;new Float:Angle,int1;GetPlayerPos(playerid, X,Y,Z);GetPlayerFacingAngle(playerid,Angle);int1 = GetPlayerInterior(playerid);SpawnedVehicles[playerid] = CreateVehicle(531, X+3,Y,Z, Angle, 0, 0, -1);LinkVehicleToInterior(SpawnedVehicles[playerid],int1);PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0);SendClientMessage(playerid,COLOR_RED,\"Elkezted a munkát! Menj a Piros Checkpointokba\");new rand1 = random(sizeof(FARM));SetPlayerCheckpoint(playerid, FARM[rand1][0],FARM[rand1][1],FARM[rand1][2], 4);GameTextForPlayer(playerid, \"~g~Elkezted a munkát!\", 3000, 3);