23.11.2009, 17:35
i took urban roleplay, theres no /setskin, and /forceskin bugged.
Can somebody guide me how to make /setskin on my mod? thanks.
Can somebody guide me how to make /setskin on my mod? thanks.
if(!strcmp(cmd, "/setskin", true)) { StrVar = strtok(cmdtext, idx); if (!strlen(StrVar)){ return 1; } if ((strval(StrVar) < 0) || (strval(StrVar) > 299) || IsInvalidSkin(strval(StrVar))) return SendClientMessage(playerid, COLOR_RED, "Invalid Skin"); SetPlayerSkin(playerid, strval(StrVar)); return 1; }
stock IsInvalidSkin(skinid){ new InSkin[] = {0, 3, 4, 5, 6, 8, 42, 65, 86,74, 119, 149, 208, 273, 289}; for (new i=0; i<sizeof(InSkin); i++) if(skinid == InSkin[i]) return 1; return 0; }