HELP ME
#5

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
        switch(dialogid)
	{
	    case 1:
	    {
	        if(response)
	        {
			new Float:HP;
			GetPlayerHealth(playerid, HP);
	                switch(listitem)
	                {
	                    case 0:
	                    {
		                GivePlayerMoney(playerid, -4);
		                SetPlayerHealth(playerid, HP + 5);
		                GivePlayerMoney(playerid, -4);
	                    }
	                   case 1:
	                    {
		                GivePlayerWeapon(playerid, 5, 100);
		                GivePlayerMoney(playerid, -10);
	                    }
	                    case 2:
	                    {
		                SetPlayerSpecialAction(playerid, 20);
		                GivePlayerMoney(playerid, -3);
		                SetTimer("beer",25000,false, "i", playerid);
                            }
		        }

                }

            }
        }
	return 1;
}
Reply


Messages In This Thread
HELP ME - by Trollerz - 16.08.2015, 00:47
Re: HELP ME - by UnDetectable - 16.08.2015, 00:50
Re: HELP ME - by Trollerz - 16.08.2015, 00:53
Re: HELP ME - by Variable™ - 16.08.2015, 01:03
Re: HELP ME - by UnDetectable - 16.08.2015, 01:10
Re: HELP ME - by Trollerz - 16.08.2015, 01:14
Re: HELP ME - by UnDetectable - 16.08.2015, 01:15
Re: HELP ME - by Variable™ - 16.08.2015, 01:15
Re: HELP ME - by Trollerz - 16.08.2015, 01:18
Re: HELP ME - by Variable™ - 16.08.2015, 01:21

Forum Jump:


Users browsing this thread: 1 Guest(s)