24.02.2013, 05:47
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 0) { if(response) { for(new i = 0; i < MAX_PLAYERS; i++) { new Float:pHealth; SendClientMessageToAll(0xFFFFFF, "An anthrax bomb has been deployed in whole san andreas!"); if(IsPlayerInArea(i, -2988.28125, -3011.71875, 3070.3125, 3000)) { GetPlayerHealth(i, pHealth); SetPlayerHealth(i, -75); ApplyAnimation(i,"CRACK","crckidle2",1,0,0, 0,0,0); } if (pHealth < 0) { SendDeathMessage(playerid, i, 41); } SetWeather(20); SetTimer("ChangeWeather",30000,true); } } else { SendClientMessage(playerid, 0xFF0000, "You canceled!"); } } return 1; }