Problem with a CheckPoint
#1

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:
Код:
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;
    }
Reply


Messages In This Thread
Problem with a CheckPoint - by Longover - 12.10.2018, 21:54
Re: Problem with a CheckPoint - by KinderClans - 12.10.2018, 21:57
Re: Problem with a CheckPoint - by TheToretto - 12.10.2018, 21:58
Re: Problem with a CheckPoint - by Calisthenics - 13.10.2018, 08:41
Re: Problem with a CheckPoint - by Dennis12 - 13.10.2018, 09:08

Forum Jump:


Users browsing this thread: 1 Guest(s)