Preventing Players from using Admin skin without killing them.
#1

Instead of preventing players from using admin skin by killing them I would like to just make them stay in class selection and just send a message.

This is my admin skin protection:

pawn Код:
if(ServerInfo[AdminOnlySkins] == 1) {
        if( (GetPlayerSkin(playerid) == ServerInfo[AdminSkin]) || (GetPlayerSkin(playerid) == ServerInfo[AdminSkin2]) ) {
            if(PlayerInfo[playerid][Level] >= 1)
                GameTextForPlayer(playerid,"~b~Welcome~n~~w~Admin",3000,1);
            else {
                GameTextForPlayer(playerid,"~r~This Skin Is For~n~Administrators~n~Only",4000,1);
                SetTimerEx("DelayKillPlayer", 2500,0,"d",playerid);
                return 1;
            }
        }
    }
Reply


Messages In This Thread
Preventing Players from using Admin skin without killing them. - by OleKristian95 - 07.05.2012, 12:11
Re: Preventing Players from using Admin skin without killing them. - by Jikesh - 07.05.2012, 12:18
Re: Preventing Players from using Admin skin without killing them. - by OleKristian95 - 07.05.2012, 12:38
Re: Preventing Players from using Admin skin without killing them. - by Jikesh - 07.05.2012, 13:36

Forum Jump:


Users browsing this thread: 1 Guest(s)