[Ajuda] Skin
#1

Galera!

Criei um comando de setar skin e salvar numa tabela MySQL, Mais ao Player logar nгo logar com a skin setada alguйm poderia ajudar?

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");

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: 1 Guest(s)