[Ajuda] Skin
#7

PHP код:
CMD:setskin(playeridparams[]) 

    if(
Player[playerid][pAdmin] | Player[playerid][pGM] < 2
        return 
sendErrorMessage(playeridMSG_CMD_WITHOUT_PERMISSION); 
    static 
skinidstring[78], str[67]; 
    if(
sscanf(params"dd"idskin)) 
        return 
sendErrorMessage(playerid"/setskin [ID] [ID - SKIN]"); 
    if(
id == INVALID_PLAYER_ID
        return 
sendErrorMessage(playeridMSG_PLAYER_OFF); 
    
SetPlayerSkin(idskin); 
    
Player[id][pSkin] = skin
    
format(stringsizeof(string),"| ADMIN | O(A) Staffer {FFFFFF}%s{1874CD} setou а skin ID: %d em vocк."Player[playerid][pName], skin); 
    
SendClientMessage(idCOR_ADMINString); 
    
format(strsizeof(str),"| INFO | Vocк setou skin ID: %d no player %s"skinPlayer[id][pName]); 
    
SendClientMessage(playeridCOR_INFOstr); 
    return 
1

loadPlayer(playerid

    
orm_addvar_int(ormidPlayer[playerid][pSkin], "Skin"); 
}  
public 
OnPlayerConnect
{
    if(!
IsPlayerNPC(playerid))
    {
        
clearPlayerVars(playerid);
        
loadPlayer(playerid);
        
SetSpawnInfo(playerid0Player[playerid][pSkin], 1958.37831343.157215.3746269.1425000000);
        
Player[playerid][pTimerPlayer] = SetTimerEx("OnPlayerUpdateEx"1000true"i"playerid);
    } 
Reply


Messages In This Thread
Skin - by BuDweiSeR - 09.03.2018, 12:33
Re: Skin - by GuiKommander - 09.03.2018, 12:43
Re: Skin - by BuDweiSeR - 09.03.2018, 13:37
Re: Skin - by Locky_ - 09.03.2018, 13:53
Re: Skin - by BuDweiSeR - 09.03.2018, 15:35
Re: Skin - by Locky_ - 09.03.2018, 15:37
Re: Skin - by BuDweiSeR - 09.03.2018, 18:52
Re: Skin - by Locky_ - 09.03.2018, 19:28
Re: Skin - by Felipealves - 11.03.2018, 04:05
Re: Skin - by Marllun - 11.03.2018, 04:07

Forum Jump:


Users browsing this thread: 2 Guest(s)