Force class selection after OnPlayerRequestClass return 0
#3

Quote:
Originally Posted by LeroyII
Посмотреть сообщение
Here is the code i use for admin skin but replaced checking is player admin with is player logged in:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(GetPlayerSkin(playerid) == 163 && (PlayerInfo[playerid][LoggedIn] == 0))
    {
        SendClientMessage(playerid, COLOR_RED, "*YOUR ERROR MESSAGE*");
        return 0;
    }
    return 1;
}
Only thing is where you see 163 (That is skin id) You will have to recreate this and put all of yours skins.. Sorry i don't know is there another way. Replace *YOUR ERROR MESSAGE* whit error message you want to be when player is not logged in and press key for spawn.. Hope i helped. Btw it is tested and it works
Change the skin id (163)to your admin skin so admins can only choose that skin .
Reply


Messages In This Thread
Force class selection after OnPlayerRequestClass return 0 - by Morion - 03.09.2014, 05:27
Re: Force class selection after OnPlayerRequestClass return 0 - by LeroyII - 03.09.2014, 07:12
Re: Force class selection after OnPlayerRequestClass return 0 - by 5194Hercules - 03.09.2014, 07:35
Re: Force class selection after OnPlayerRequestClass return 0 - by LeroyII - 03.09.2014, 07:53
Re: Force class selection after OnPlayerRequestClass return 0 - by Morion - 03.09.2014, 10:09

Forum Jump:


Users browsing this thread: 1 Guest(s)