24.07.2012, 16:54
Anyone know how to disable inputting 300+ skin. Coz when I tried entering 300+ it closes my gta.
Also if a player enter 300+ skin a sendclientmessage will display "Error you can't go under 299" Or something like that.
Also if a player enter 300+ skin a sendclientmessage will display "Error you can't go under 299" Or something like that.
Код:
if(strval(inputtext) < 0 || strval(inputtext) > 299) SendClientMessage(playerid, WHITE, "SERVER: Cannot go under 0 or above 299."); new skin = strval(inputtext); PlayerInfo[playerid][pModel] = skin; SetPlayerSkin(playerid, skin); GameTextForPlayer(playerid,"~g~Skin ~g~Changed",2000,3); return 1;