10.05.2013, 06:00
(
Последний раз редактировалось BlackHorse; 10.05.2013 в 11:32.
)
INTRODUCTION
In this we laern about how to make a Anti driveby system because in many servers driveby is now allowed
Step 1
include a_samp which is important for making FS
Step 2
when player drive by as passenger or driver
If you want to not do any thing with passenger when he/she drive by cut this code from your FS
In this we laern about how to make a Anti driveby system because in many servers driveby is now allowed
Step 1
include a_samp which is important for making FS
Код:
#include a_samp
when player drive by as passenger or driver
Код:
public OnPlayerDeath(playerid, killerid, reason) { new playerState = GetPlayerState(killerid); // Get the killer's state if (playerState == PLAYER_STATE_PASSENGER || playerState == PLAYER_STATE_DRIVER) // If the killer was in a vehicle as driver or passenger too { //What you do their for player Kick/Ban/Any other thing } return 1; }
Код:
playerState == PLAYER_STATE_PASSENGER ||