Anti-Jetpack
#5

pawn Code:
public AntiJetpack()
{
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerNPC(playerid) && IsPlayerConnected(i) && isspawned[i] == 1 /*&& PlayerInfo[i][Level] >= 1 || IsPlayerAdmin(i)*/)//If you add Level and IsPlayerAdmin, it would just check for players that are connected, is spawned, is level 1 or more and is logged to RCON.
        {
            if(GetPlayerSpecialAction(i) == 2)
            {
                new string[128],name[MAX_PLAYER_NAME];
                GetPlayerName(i,name,sizeof(name));
                format(string,sizeof(string),"***KICK:  %s (%d)  (AUTO KICK)  Jetpack Cheats.",name,i);
                SendClientMessageToAll(COLOR_PINK,string);
                SendClientMessage(i,COLOR_PINK,"You Have Been Automatically Kicked.");
                SetPlayerPos(i,197.6661,173.8179,1003.0234);
                SetPlayerInterior(i,3);
                SetCameraBehindPlayer(i);
                SaveToFile("KickLog",string);
                Kick(i);
                return 1;
            }
        }
    }
}
Snipa beat me. .
Reply


Messages In This Thread
[SOLVED]Anti-Jetpack - by grand.Theft.Otto - 12.05.2011, 00:47
Re: Anti-Jetpack - by Tee - 12.05.2011, 00:56
Re: Anti-Jetpack - by grand.Theft.Otto - 12.05.2011, 00:58
Re: Anti-Jetpack - by Snipa - 12.05.2011, 01:17
Re: Anti-Jetpack - by Tee - 12.05.2011, 01:18
Re: Anti-Jetpack - by grand.Theft.Otto - 12.05.2011, 01:44

Forum Jump:


Users browsing this thread: 3 Guest(s)