[AJUDA]Salvar skin pelo comando
#4

Exemplo:
pawn Код:
if(strcmp(cmd,"/skin",true) == 0)
    {
        new skin;
        tmp=strtok(cmdtext,idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFFF, "Use /SKIN [ID DA SKIN]");
        if((strval(tmp) < 0) || (strval(tmp) > 299)) return SendClientMessage(playerid, 0xFFFFFFFF, "As skins sгo de 0 atй 299!");
        skin=strval(tmp);
        SetPlayerSkin(playerid,skin);
        SetPVarInt(playerid, "Skin1337", skin);
        return 1;
    }

public OnPlayerSpawn(playerid)
{
    //FINAL DA CALLBACK
    SetPlayerSkin(playerid, GetPVarInt(playerid, "Skin1337"));
    return 1;
}
Reply


Messages In This Thread
[AJUDA]Salvar skin pelo comando - by Edu33 - 12.05.2012, 00:27
Re: [AJUDA]Salvar skin pelo comando - by CidadeNovaRP - 12.05.2012, 00:31
Re: [AJUDA]Salvar skin pelo comando - by Edu33 - 12.05.2012, 00:36
Re: [AJUDA]Salvar skin pelo comando - by CidadeNovaRP - 12.05.2012, 00:39
Re: [AJUDA]Salvar skin pelo comando - by Edu33 - 12.05.2012, 00:52
Re: [AJUDA]Salvar skin pelo comando - by CidadeNovaRP - 12.05.2012, 00:55
Re: [AJUDA]Salvar skin pelo comando - by Edu33 - 12.05.2012, 01:53

Forum Jump:


Users browsing this thread: 1 Guest(s)