28.05.2018, 06:14
(
Последний раз редактировалось marshmallow; 28.05.2018 в 06:55.
)
Quote:
So you want a player to get slapped if he/she tries to enter a car from another faction?
Just check for the vehicle in OnPlayerEnterVehicle https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle and add this: Код:
new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z);//Gets players position SetPlayerPos(playerid, X, Y, Z+5);//Adds 5 to players Z coord, also slaps the player. Change 5 to what you think is good. |