SA-MP Forums Archive
Weapon Hack - 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: Weapon Hack (/showthread.php?tid=412862)



Weapon Hack - Akcent_Voltaj - 03.02.2013

i made a weapon hack and sometimes when i join svr i get kicked.Weapon hack..kicking innocent people..


PHP код:
forward weaponhack(playerid);
                    public 
weaponhack(playerid)
                    {
                        for(new 
iMAX_PLAYERSi++)
                        {
                            new 
sendername[MAX_PLAYER_NAME];
                            
GetPlayerName(isendernamesizeof(sendername));
                              new 
string[256];
                            if(
GetPlayerWeapon(i) == 35  || GetPlayerWeapon(i) == 36 || GetPlayerWeapon(i) == 37 || GetPlayerWeapon(i) == 38 || GetPlayerWeapon(i) == 17 || GetPlayerWeapon(i) == 44 || GetPlayerWeapon(i) == 45 || GetPlayerWeapon(i) == 39 || GetPlayerWeapon(i) == 40 || GetPlayerWeapon(i) == 9)
                            {
                                
format(stringsizeof(string), "%s a primit Kick de la BOT, Motiv: Weapon Hack",sendername);
                                
SendClientMessageToAll(COLOR_REDstring);
                                
Kick(i);
                                return 
1;
                            }
                        }
                         return 
1;
                    } 



Re: Weapon Hack - ]Rafaellos[ - 03.02.2013

Try to put "ResetPlayerWeapons(playerid);" on "OnPlayerConnect".


Re: Weapon Hack - Akcent_Voltaj - 03.02.2013

you sure??i still get


Re: Weapon Hack - ]Rafaellos[ - 03.02.2013

Hm... check if you add to give weapons in some skin or when player connect in some filterscript.