07.04.2010, 09:38
I and these two scripts and I do not know where to put them to work:
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 ...
??
Код:
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);
}
}
But I do not know where to put them to work ...
??
