Command to change skin
#6

pawn Код:
if(strcmp(cmd, "/myskin", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, red, "Usage: /myskin [skinid]");
        return 1;
    }
    new skin;
    skin = strval(tmp);
    format(string, sizeof(string), "You change your skin to this skin ID: %d", skin);
    SendClientMessage(playerid, COLOR_GREEN, string);
    SetPlayerSkin(playerid, skin);
    return 1;
}
This will work
Reply


Messages In This Thread
Command to change skin - by Aram555 - 17.01.2010, 02:48
Re: Command to change skin - by Miguel - 17.01.2010, 03:00
Re: Command to change skin - by Kostas' - 25.09.2011, 13:15
Re: Command to change skin - by dice7 - 25.09.2011, 13:30
Re: Command to change skin - by Kostas' - 25.09.2011, 15:08
Re: Command to change skin - by MA_proking - 25.09.2011, 16:53
Re: Command to change skin - by Kostas' - 25.09.2011, 18:27
Re: Command to change skin - by Kingunit - 25.09.2011, 18:37
Re: Command to change skin - by Kostas' - 25.09.2011, 19:12
Re: Command to change skin - by SantarioLeone - 26.09.2011, 01:31

Forum Jump:


Users browsing this thread: 5 Guest(s)