[Pedido] comando de skin por id
#7

PHP код:
COMMAND:setskin(playeridparams[])
{
    
// Setup local variables
    
new Msg[128], Skin;
    
// Send the command to all admins so they can see it
    
SendAdminText(playerid"/setskin"params);
    
// Check if the player has logged in
    
if (APlayerData[playerid][LoggedIn] == true)
    {
        
// Check if the player's admin-level is at least 4
        
if (APlayerData[playerid][PlayerLevel] >= 0)
        {
            if (
sscanf(params"i"Skin)) SendClientMessage(playerid0xFF0000AA"Digite: \"/setskin <skin-id (0-299)>\"");
            else
            {
                
// Check if the player entered a valid skin-id
                
if ((Skin >= 0) && (Skin <= 299))
                {
                    
// Set the skin for the player
                    
SetPlayerSkin(playeridSkin);
                    
// Let the other player know the reason too
                    
format(Msg128"{808080}Voce Mudou a Sua Skin pela Skin: {FFFFFF}%i"Skin);
                    
SendClientMessage(playerid0xFFFFFFFFMsg);
                }
                else
                    
SendClientMessage(playerid0xFFFFFFFF"{808080}Skin Invalida. Digite uma Skin de 0 a 299");
            }
        }
        else
            return 
0;
    }
    else
        return 
0;
    
// Let the server know that this was a valid command
    
return 1;

Reply


Messages In This Thread
comando de skin por id - by xXCallXX - 02.02.2014, 23:47
Re: comando de skin por id - by FallweN - 02.02.2014, 23:49
Re: comando de skin por id - by kevinho.007 - 02.02.2014, 23:54
Re: comando de skin por id - by xXCallXX - 03.02.2014, 00:01
Re: comando de skin por id - by kevinho.007 - 03.02.2014, 00:24
Re: comando de skin por id - by rjjj - 03.02.2014, 00:45
Re: comando de skin por id - by giovanehen - 03.02.2014, 01:20

Forum Jump:


Users browsing this thread: 5 Guest(s)