01.03.2013, 18:48
I need a restriction to be with vehicles, only to be drive-able if they have a certain score like 1000.
I need a restriction for Rhino, Hydra, Hunter.
(My current code) Which is not working.
I need a restriction for Rhino, Hydra, Hunter.
(My current code) Which is not working.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(GetPlayerVehicleID(playerid) == 432)
{
if (newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerScore(playerid) < 1500)
{
RemovePlayerFromVehicle(playerid);
GameTextForPlayer(playerid,"~r~~h~200+~b~ Score Needed!",3000,3);
//SendClientMessage(playerid, C_RED, "You need to have 250+ score to drive this Tank");
}
}
}
return 1;
}