can anyone script me a /skin command?
#7

strcmp :

PHP код:
new idx;
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (!
strcmp("/skin"cmdtexttrue) == 0)
    {
        new 
tmp[256], str[75];
        
tmp strtok (cmdtextidx);
        if (!
strlen(tmp)  return  SendClientMessage(playerid, -1"USAGE: /skin [Skin Id]");
        
SetPlayerSkin(playeridstrval(tmp));
        
format(strsizeof(str), "You have changed your skin to Id : %s"GetPlayerSkin(playerid));
        
SendClientMessage(playerid, -1str);
        return 
1;
    }
    return 
0;

ZCMD / IZCMD / Pawn:CMD
PHP код:
CMD:skin(playeridparams[])
{
        new 
str[75];
        if (
isnull(params)  return  SendClientMessage(playerid, -1"USAGE: /skin [Skin Id]");
        
SetPlayerSkin(playeridparams);
        
format(strsizeof(str), "You have changed your skin to Id : %s" ,params);
        
SendClientMessage(playerid, -1str);
        return 
1;

choose what you want

take care
Reply


Messages In This Thread
can anyone script me a /skin command? - by XHunterZ - 22.12.2016, 15:35
Re: can anyone script me a /skin command? - by Hansrutger - 22.12.2016, 15:40
Re: can anyone script me a /skin command? - by GoldenLion - 22.12.2016, 15:51
Re: can anyone script me a /skin command? - by RyderX - 22.12.2016, 18:01
Re: can anyone script me a /skin command? - by SickAttack - 22.12.2016, 18:04
Re: can anyone script me a /skin command? - by GoldenLion - 22.12.2016, 18:54
Re: can anyone script me a /skin command? - by Yaa - 22.12.2016, 19:17
Re: can anyone script me a /skin command? - by RyderX - 22.12.2016, 19:43
Re: can anyone script me a /skin command? - by GoldenLion - 22.12.2016, 20:47
Re: can anyone script me a /skin command? - by SickAttack - 22.12.2016, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)