check skin to be able to drive a car
#1

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.?
Reply
#2

pawn Код:
if(GetPlayerSkin(playerid) != 299) RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, -1, "You are not a cop!");
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)