Examen
#1

I and these two scripts and I do not know where to put them to work:
Код:
    if(PlayerInfo[i][pExamen] == 1)
	{
		if(GetPlayerState(i) != PLAYER_STATE_DRIVER)
	    {
	     PlayerInfo[i][pExamen] = 0;
	     SendClientMessage(i,COLOR_LIGHTGREEN, "Ai cazut Testul deoarece ai iesit din Masina!");
         SetVehicleToRespawn(268);
		 DisablePlayerCheckpoint(i);
	     }
	}
	 if(PlayerInfo[i][pExamen] == 1)
	{
	new carinfo = GetPlayerVehicleID(i);
	new Float:health;
    GetVehicleHealth(carinfo, health);
        if(health < 1000.0)
       {
        PlayerInfo[i][pExamen] = 0;
	    SendClientMessage(i,COLOR_LIGHTGREEN, "Ai cazut Testul deoarece ai zgariat Masina!");
	    DisablePlayerCheckpoint(i);
	    RemovePlayerFromVehicle(i);
	    SetVehicleToRespawn(268);
	    }
	}
One is if you hit the car crash driving exam, and the second is when you get out of the car crash you exam exam!
But I do not know where to put them to work ...
??
Reply
#2

Put it under "OnPlayerStateChange", or something like that.
Reply
#3

Put it under:

pawn Код:
public OnPlayerStateChange(playerid, newstate,oldstate)
{
}
Reply


Forum Jump:


Users browsing this thread: