16.12.2011, 15:41
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(vid ==VIP_CAR_ID/*Change this*/)
{
if ( P_DATA[ playerid ][ Vip ] >= 1 ) return 1;
else if(! P_DATA[ playerid ][ Vip ] >= 1 )
{
SendClientMessage(playerid, -1, "This is a VIP vehicle, SIR.");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}