Auto jetpack ban? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Auto jetpack ban? (
/showthread.php?tid=188601)
Auto jetpack ban? -
Face9000 - 08.11.2010
Ye it's my previous similar thread,i need an instant ban for who have a jetpack.
Thanks
Re: Auto jetpack ban? -
Mauzen - 08.11.2010
Look at the wiki example:
https://sampwiki.blast.hk/wiki/GetPlayerSpecialAction
You can just copy the lines and add them to your OnPlayerUpdate
Re: Auto jetpack ban? -
joeri55 - 08.11.2010
Use Junkbuster?
Re: Auto jetpack ban? -
HireMe - 08.11.2010
do you mean something like this?
pawn Код:
#include <a_samp>
forward JetPack();
public OnFilterScriptInit()
{
SetTimer("JetPack",1000,1);
return 1;
}
public JetPack()
{
for(new i;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(!IsPlayerAdmin(i))
{
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
{
Ban(i);
}
}
}
}
return 1;
}