22.10.2011, 14:17
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == vid) //Fill in the vehicle id
{
if(GetPlayerSkin(playerid) != skin) //Fill in the skin
{
RemovPlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFF0000FF, "you cant drive this");
}
}
return 1;
}