help - 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: help (
/showthread.php?tid=149975)
help -
MEXICAN_NORTE - 24.05.2010
hi can someone help me with a simple commands thaai s pretty much like an anticheat..because ilook around the anticheats ans they dont really work well
well all i want is just a simple sisstem were if like a players pulls out a rpg or a minigun he aautomatically gets killed or baned :P im tired of stupid hakers coming to ma server when admins are not on thanks
Re: help -
ViruZZzZ_ChiLLL - 24.05.2010
pawn Код:
if(GetPlayerWeapon(killerid) == 38) return SetPlayerHealth(playerid, 0);
Re: help -
MEXICAN_NORTE - 24.05.2010
were do i put this on my gamemode??..het by the way sup viruzzz :P
Re: help -
aircombat - 24.05.2010
put that under OnPlayerDeath
Quote:
Originally Posted by ViruZZzZ_ChiLLL
pawn Код:
if(GetPlayerWeapon(killerid) == 38) return SetPlayerHealth(playerid, 0);
|
Re: help -
ViruZZzZ_ChiLLL - 24.05.2010
Quote:
Originally Posted by MEXICAN_NORTE
were do i put this on my gamemode??..het by the way sup viruzzz :P
|
Under
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerWeapon(killerid) == 38) return Ban(killerid); // Ban much better
return 1;
}
Me, fine, you don't go online on MSN anymore xD
Re: help -
MEXICAN_NORTE - 24.05.2010
lol thanks man bothc of yall yea i do but ma damn sister is alwayz on lol thanks for the command
Re: help -
MEXICAN_NORTE - 24.05.2010
i aded it to my gamemode but my pawno crash it wont compile