SA-MP Forums Archive
Help here please :/ - 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: Help here please :/ (/showthread.php?tid=289091)



Help here please :/ - Super_Panda - 10.10.2011

onplayerupdate how to get the weapon that the player has like

OnPlayerUpdate
{

if(player has minigun)
{
Ban(playerid);
}

}


Re: Help here please :/ - TheLazySloth - 10.10.2011

if(GetPlayerWeapon(playerid) == 38)


Re: Help here please :/ - grand.Theft.Otto - 10.10.2011

pawn Код:
// under onplayerupdate

if(GetPlayerWeapon(playerid) == 38 )
{
    SendClientMessage(playerid,-1,"You Have Been Banned For Minigun Weapons.");
    Ban(playerid);
    return 1;
}