20.05.2014, 00:27
Here's what I have
This is what happens when I go in-game
How can I make it so it sets their skin to whatever they type in the chat?
Код:
new tmp[3], skinid = strval(tmp); if(1 <= strval(tmp) <= 299) { SetPlayerSkin(skinid); SendClientMessage(playerid, COLOR_WHITE, "[REGISTER:] You have now set your skin."); RegistrationStep[playerid] = 0; TogglePlayerControllable(playerid,1); PlayerInfo[playerid][pRegistered] = 1; return 0; } else { SendClientMessage(playerid, COLOR_RED, "[REGISTER:] Invalid skin, 1-299"); SendClientMessage(playerid, COLOR_RED, "[NOTE:] Some skins are restricted."); } return 0;
How can I make it so it sets their skin to whatever they type in the chat?