car prevention help
#1

ok im trying to prevent people from getting in cars unless there a cop,army,or fbi skin.
but, it just lets them in anyway.

Код:
if(GetVehicleModel(vehicleid) == 597)
{
if(GetPlayerSkin(playerid) == 285 || 165 || 287 || 283 || 163)
{
// You are a cop, no action needed.
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "== You are not law enforcement!");
RemovePlayerFromVehicle(playerid);
}

}
Reply
#2

pawn Код:
new skin;
skin = GetPlayerSkin(playerid);
if(GetVehicleModel(vehicleid) == 597)
{
if(skin != 285 || skin != 165 || skin != 287 || skin != 283 || skin != 163)
{
SendClientMessage(playerid, COLOR_YELLOW, "== You are not law enforcement!");
RemovePlayerFromVehicle(playerid);
}
}
Reply
#3

cool. thks.
Reply
#4

np :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)