A good anti-car surfing? - 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: A good anti-car surfing? (
/showthread.php?tid=448650)
A good anti-car surfing? -
Necip - 05.07.2013
How can I make a good anti-car surfing system?Can you give me an example so I can do it good?
Re: A good anti-car surfing? -
Cjgogo - 05.07.2013
Someone asked the same thing a few hours ago, look around before posting:
https://sampforum.blast.hk/showthread.php?tid=448619
Re: A good anti-car surfing? -
Necip - 05.07.2013
Hmm, how can I use it?Give me an example?
Re: A good anti-car surfing? -
Cjgogo - 05.07.2013
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;
}
Re: A good anti-car surfing? -
Necip - 05.07.2013
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?
Re: A good anti-car surfing? -
MP2 - 05.07.2013
You shouldn't KILL them, that's just stupid. Just SetPlayerPos them behind the vehicle.
Re: A good anti-car surfing? -
Necip - 05.07.2013
Well, I aggree with you, but is it possible as I said above?To send admins only one message?
Re: A good anti-car surfing? -
Necip - 05.07.2013
Bump...