SA-MP Forums Archive
/saveskin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /saveskin (/showthread.php?tid=387243)



/saveskin - Blackazur - 23.10.2012

How can i create /saveskin command, i dont know how, i script with sscanf and zcmd.


Re: /saveskin - lorizz - 23.10.2012

In your enums, first create a new string like: pSkin, add in the register system and onplayerdisconnect his string and under everything
Код:
CMD:saveskin(playerid, params[])
{
        new skin = GetPlayerSkin(playerid);
        SendClientMessage(playerid, 0x00FF00AA, "You saved the skin with success!");
        PlayerInfo[playerid][pSkin] = skin;
        return 1;
}



Re: /saveskin - Alex Magaсa - 23.10.2012

PHP код:
DELETED