A good anti-car surfing?
#1

How can I make a good anti-car surfing system?Can you give me an example so I can do it good?
Reply
#2

Someone asked the same thing a few hours ago, look around before posting:

https://sampforum.blast.hk/showthread.php?tid=448619
Reply
#3

Hmm, how can I use it?Give me an example?
Reply
#4

This should kill the surfer:

pawn Код:
new AntiCarSurfing[MAX_PLAYERS];
forward KillSurfer(playerid);

public OnPlayerConnect(playerid)
{
    AntiCarSurfing[playerid]=SetTimerEx("KillSurfer",1000,true,"i",playerid);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    KillTimer(AntiCarSurfing[playerid]);
    return 1;
}

public KillSurfer(playerid)
{
    new surf;
    surf=GetPlayerSurfingVehicleID(playerid);
    if(surf!=INVALID_VEHICLE_ID)
             SetPlayerHealth(playerid,0);
    return 1;
}
Reply
#5

Will this work if I make it so that it will send message to admins, I mean will it just spam the admins or say it once?
Reply
#6

You shouldn't KILL them, that's just stupid. Just SetPlayerPos them behind the vehicle.
Reply
#7

Well, I aggree with you, but is it possible as I said above?To send admins only one message?
Reply
#8

Bump...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)