23.05.2010, 15:56
Hi! I have a code on the command / weather? Then show me a dialog box in which I enter ID weather.
if(strcmp(cmd, "/weather", true) == 0) { if(IsPlayerAdmin(playerid)) { ShowPlayerDialog(playerid, DIALOG_STYLE_INPUT, "Change Weather", "Type the weather ID below!", "Change", "Cancel"); } }
Originally Posted by TKZ227
I'll create one real fast.
Код:
if(strcmp(cmd, "/weather", true) == 0) { if(IsPlayerAdmin(playerid)) { ShowPlayerDialog(playerid, DIALOG_STYLE_INPUT, "Change Weather", "Type the weather ID below!", "Change", "Cancel"); } } |
public OnPlayerDialogResponse(blablablablablaspam)//Recommended not to copy this
{
if(dialogid == weatherid)//change that to your own
{
SetWeather(strval(inputtext));
}
return 1;
}