SA-MP Forums Archive
Removeplayerfromvehicle - 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)
+--- Thread: Removeplayerfromvehicle (/showthread.php?tid=440371)



Removeplayerfromvehicle - NicholasA - 29.05.2013

When a player enters a vehicle i want it to not allow him and just cancel the action.
Removeplayerfromvehicle doesnt do it.


Re: Removeplayerfromvehicle - Smokkr - 29.05.2013

Type this:
pawn Код:
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z+5);
SendClientMessage(playerid, -1, "{F81414}Error:{FFFFFF}You can't enter any vehicles.");//If you want change this text
Under:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)



AW: Removeplayerfromvehicle - Harry :) - 29.05.2013

or simply do ClearAnimations(playerid); OnPlayerEnterVehicle.