26.06.2012, 14:41
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new str[128];
switch(dialogid)
{
case 250:
{
if(response)
{
new value = strval(inputtext);
if(value < 1 || value > 60) return ShowPlayerDialog(playerid,250,DIALOG_STYLE_INPUT,"Test","{FF00EA}Test Age?\n{FF00EA}You're Age Must Be Between 1-60!","Okay","");
PutPlayerInVehicle(playerid,v_ID,3);
TogglePlayerControllable(playerid, 1);
FadeColorForPlayer(playerid,255,0,0,0,255,0,0,255,100,10);
}
}
}
return 1;
}