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

Quote:
Originally Posted by jikesh_jus
Посмотреть сообщение
Код:
public OnPlayerRequestSpawn(playerid)
{
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);
                return 0;
                
            }
        }
    }

return 1;
}
Didn't test the code, just showing an example.
Didn't help at all :/
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: 2 Guest(s)