How to make 2actions with 1 command?
#2

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/Boom", cmdtext, true) == 0)
	{
                if(AMAZ[playerid] == 0) {
		AMAZ[playerid] = 1;
		SendClientMessage(playerid,COLOR_GREEN,"Enabled"); 
                }
                 else
               {
                SendClientMessage(playerid,COLOR_GREEN,"Disabled");
		AMAZ[playerid] = 0;
               }
		return 1;
	}
	return 0;
}
Reply


Messages In This Thread
How to make 2actions with 1 command? - by slobbann - 01.12.2010, 16:51
Re: How to make 2actions with 1 command? - by Macluawn - 01.12.2010, 16:53
Re: How to make 2actions with 1 command? - by slobbann - 01.12.2010, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)