20.03.2011, 10:29
Hello,
I tried eveything to get the player away from a cop car
if they are not a LEO. I made this to test it out but it didn't
worked:
but it doesn't wokr, how to do this on the right wy?
thank!
I tried eveything to get the player away from a cop car
if they are not a LEO. I made this to test it out but it didn't
worked:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(vehicleid == 596) { if(PlayerInfo[playerid][pFaction] != 1) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, COLOR_GREY, "YOU DONT HAVE THE KEYS"); } } return 1; }
thank!