check skin to be able to drive a car - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: check skin to be able to drive a car (
/showthread.php?tid=249879)
check skin to be able to drive a car -
HondaCBR - 20.04.2011
hello, how can i do a script so it checks skin lets say that the skin needs to be 299, if its not and you enter car: CAR1, CAR2, CAR3, you get thrown out the car with a message that you are not a cop.?
Re: check skin to be able to drive a car - [L3th4l] - 20.04.2011
pawn Код:
if(GetPlayerSkin(playerid) != 299) RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, -1, "You are not a cop!");
Re: check skin to be able to drive a car -
grand.Theft.Otto - 21.04.2011
What Lethal said.
I think you have to make a new variable and case to get the certain vehicles you want, use this for example:
https://sampwiki.blast.hk/wiki/IsPlayerInVehicle
https://sampwiki.blast.hk/wiki/GetPlayerVehicleID