SA-MP Forums Archive
Server crashed with Kick - 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: Server crashed with Kick (/showthread.php?tid=387723)



Server crashed with Kick - Abreezy - 26.10.2012

We are making a system and when we kick player it crashes server, here is an example of the code.


pawn Код:
if(PRESSED(KEY_FIRE))
    {
        new weapon = GetPlayerWeapon(playerid);
        if(weapon == 18 || weapon == 26 || weapon == 27 || weapon == 28 || weapon == 35 || weapon == 36 || weapon == 37 ||  weapon == 38 || weapon == 39 || weapon == 40)
        {
            Kick(playerid);
        }
    }
All suggestions would be loved, thanks.