when players choose skins from backward
#5

Quote:
Originally Posted by GoldZoroGrab
Посмотреть сообщение
because when player choose a skin when he register then when he relog he can't choose another one
Then check if the skin on the classid is not the same as the one when he registered and return 0; that means he can't use that skin.
pawn Код:
public OnPlayerRequestClass( playerid, classid )
{
    if( IsPlayerRegistered( playerid ) && classid != SInfo[ playerid ][ Skin ] )
    {
        SendClientMessage( playerid, COLOR_GREEN, "This skin is not yours! Choose the one you had when you registered." );
        return 0;
    }
    return 1;
}
PS: IsPlayerRegistered( playerid ) is just an example. Use the variable to check if he is registered.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)