01.03.2013, 18:56
Well first of all, you should check the state before the model.
Second of all, model != id. Vehicle ID and vehicle model are two different things. What you want is model.
Here's an example:
Second of all, model != id. Vehicle ID and vehicle model are two different things. What you want is model.
Here's an example:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if( newstate == PLAYER_STATE_DRIVER )
{
if( GetVehicleModel( GetPlayerVehicleID( playerid )) == 432 )
{
if(GetPlayerScore(playerid) < 1500)
{
RemovePlayerFromVehicle( playerid );
GameTextForPlayer( playerid, "~r~~h~1500+~b~ Score Needed!", 3000, 3 );
}
}
}
return true;
}