[AJUDA] Skin nгo funfa
#1

pawn Код:
CMD:skin ( playerid ,  params[] )
{
if(PlayerInfo[playerid][VIP] == 1){
new skin[256];
new cmdtext[256];
skin = KcmD(1, cmdtext);
if(!strlen(skin)) return SendClientMessage(playerid,COLOR_RED,"USE: /skin [id da skin]");
SetPlayerSkin(playerid,strval(skin));
}else{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й VIP!");
return 1;
}
return true;
}
pawn Код:
stock KcmD(param, cmdtext[])
{
    new string[128], pos, var;
    format(string, sizeof(string), "%s ", cmdtext);

    while((pos = strfind(string, " ", true)) != -1)
    {
        if(var == param) return string;
        var++;

        strdel(string, 0, pos + 1);
        if(strcmp(string, " ", true, pos) == 0) goto end;
    }

end:
    string[0] = '\0';
    return string;
}
Digito /skin e o id da skin e nгo funciona, aparece assim: USE: /skin [id da skin].

Tб foda, ajuda aн.
Reply


Messages In This Thread
[AJUDA] Skin nгo funfa - by [AF]Junior - 24.02.2011, 23:27
Re: [AJUDA] Skin nгo funfa - by bruno-style - 25.02.2011, 01:34
Re: [AJUDA] Skin nгo funfa - by [AF]Junior - 25.02.2011, 13:56
Re: [AJUDA] Skin nгo funfa - by Ricop522 - 25.02.2011, 14:06
Re: [AJUDA] Skin nгo funfa - by bruno-style - 25.02.2011, 14:26
Re: [AJUDA] Skin nгo funfa - by [AF]Junior - 25.02.2011, 14:38
Re: [AJUDA] Skin nгo funfa - by Ricop522 - 25.02.2011, 14:43
Re: [AJUDA] Skin nгo funfa - by rjjj - 25.02.2011, 15:40
Re: [AJUDA] Skin nгo funfa - by [AF]Junior - 25.02.2011, 21:13
Re: [AJUDA] Skin nгo funfa - by [AF]Junior - 25.02.2011, 21:24

Forum Jump:


Users browsing this thread: 3 Guest(s)