Private Skin Help
#7

PHP код:
public OnPlayerRequestSpawn(playerid)
{
    if(
GetPlayerSkin(playerid) == 26)
    {
        new 
SkinName[MAX_PLAYER_NAME];
        
GetPlayerName(playeridSkinNamesizeof(SkinName));
        if(!
strcmp(SkinName"Apex"false))
        {    
            
SendClientMessage(playerid,red,"This Skin For Apex Only");
            return 
0;
        }
    }
    return 
1;

Not sure if it works.

EDIT: Didn't see you solved it, good to here.
OnPlayerRequestClass is when the player switches to a new classid.
OnPlayerRequestSpawn is when the player clicks the spawn button.
Reply


Messages In This Thread
Private Skin Help - by Miller007 - 20.04.2016, 10:15
Re: Private Skin Help - by 1nspire - 20.04.2016, 12:27
Re: Private Skin Help - by Saliim - 20.04.2016, 12:34
Re: Private Skin Help - by DarkLored - 20.04.2016, 12:45
Re: Private Skin Help - by Miller007 - 20.04.2016, 19:00
Re: Private Skin Help - by Miller007 - 20.04.2016, 19:03
Re: Private Skin Help - by J0sh... - 20.04.2016, 19:15
Re: Private Skin Help - by J0sh... - 20.04.2016, 19:17

Forum Jump:


Users browsing this thread: 1 Guest(s)