26.12.2010, 04:54
pawn Код:
if(dialogid == 19)
{
if(response)
{
new freq = strval(inputtext);
if (freq >= 1000 && freq <= 9500)
{
new string[128];
PlayerInfo[playerid][pRadioFreq] = strval(inputtext);
format(string, sizeof(string), "INFO: Frequency set to %d GHz", inputtext);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "ERROR: Your frequency must be between 1000 GHz and 9000 GHz.");
}
}
}