12.10.2018, 21:54
Problem: When a player enter in checkpoint,the checkpoint is not disabling and i give the mesage: "Trebuie sa ai o masina de tuns iarba.",but i have the correct vehicle.
Trebuie sa ai o masina de tuns iarba. = You must to have a lawn mower.(a car,id 572)
Code:
Trebuie sa ai o masina de tuns iarba. = You must to have a lawn mower.(a car,id 572)
Code:
Код:
public OnPlayerEnterRaceCheckpoint(playerid) { new ccar = IsPlayerInAnyVehicle(playerid); new tmpcar = GetPlayerVehicleID(playerid); if(TaietorJob[playerid] == 1) { if(GetPlayerVehicleID(playerid) == 572) { DisablePlayerCheckpoint(playerid); TaietorJob[playerid] = 2; SetPlayerCheckpoint(playerid, 773.2032,-1242.4979,13.1317, 5.0); GivePlayerCash(playerid, 7); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit 7 lei pentru munca prestata!"); } else return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa ai o masina de tuns iarba."); return 1; }