04.06.2011, 15:58
Hey how i make a simple skin command!
Like tihis when player write /skin then he see /skin [SkinID].
Any ideas?
Like tihis when player write /skin then he see /skin [SkinID].
Any ideas?
if(strcmp(cmd, "/skin", true) == 0) { new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0xAA3333AA, "Usage: /skin [skinid]"); return 1; } new skin; skin = strval(tmp); new string[128]; format(string, sizeof(string), "You change your skin to this skin ID: %d", skin); SendClientMessage(playerid, 0xFFFF00AA, string); SetPlayerSkin(playerid, skin); return 1; }