d
public text v1 · immutable new skincmd[256], skinindex;
skincmd = strtok(cmdtext, skinindex);
if (strcmp(skincmd, "/skin", true) ==0)
{
new skin;
skin = strval(strtok(cmdtext, skinindex));
SetPlayerSkin(playerid, skin);
new string[256];
format(string, sizeof(string),"Your skin has been changed to skin %d", skin);
SendInfMsg(playerid, string);
return 1;
}