Quote:
Originally Posted by Carlton
pawn Код:
#define D_CHANGE_SKIN 5
ShowPlayerDialog(playerid,D_CHANGE_SKIN ,DIALOG_STYLE_INPUT,"Skin","Type in your wanted skin id into the input box.","Change","Cancel");
public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[]) { if(dialogid == D_CHANGE_SKIN) { new skinid = strval(inputtext); SetPlayerSkin(playerid, skinid); } return 1; }
|
Thanks, this is nice, but how do I make it so they can't buy any skin above 295? Cause if I buy skin ID 400 ingame it crashes everyone, which needs to not happen