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

1. Use
Код:
GetVehicleHealth(vehicleid, &Float:health);
2.
Код:
if(GetPlayerState == PLAYER_STATE_DRIVER) 
{ 
    // ur code 
}
else
{
    // You left the vehicle
}
Reply
#3

Sorry ... but precisely where they make?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)