Again... need help with dialogresponse.
#2

Код:
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;
}
Hop this solves ur problem.
Reply


Messages In This Thread
Again... need help with dialogresponse. - by Strier - 24.02.2013, 04:36
Re: Again... need help with dialogresponse. - by jiwan - 24.02.2013, 05:47
Re: Again... need help with dialogresponse. - by Scenario - 24.02.2013, 07:02
Re: Again... need help with dialogresponse. - by [MM]RoXoR[FS] - 24.02.2013, 07:18
Re: Again... need help with dialogresponse. - by Scenario - 24.02.2013, 07:20
Respuesta: Again... need help with dialogresponse. - by Strier - 24.02.2013, 07:35

Forum Jump:


Users browsing this thread: 1 Guest(s)