[Duvida]Como criar um modo de trabalho de adm com Skin?
#2

PHP код:
new bool:usou[MAX_PLAYERS];

public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/profadmin"true) == 0)
    {
        if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1"Apenas administradores!!"); // TROQUE ISPLAYERADMIN PELA VARIAVEL QUE IDENTIFICA UM ADM
        
if(!usou[playerid])
        {
            
SetPVarInt(playerid"Skin"GetPlayerSkin(playerid));
            
SetPlayerSkin(playerid217);
            
usou[playerid] = true;
        }
        else 
        { 
            
SetPlayerSkin(playeridGetPVarInt(playerid"Skin"));
            
usou[playerid] = false;
        } 
        return 
1;
    }
    return 
0;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)