How can I detect the players that used X command?
#9

Code:
new CommandCount;

CMD:thecommand(playerid,params[])
{
	new string[60];
 	CommandCount++;
	format(string,sizeof(string),"You are number %i in the queue.",CommandCount);
	SendClientMessage(playerid,-1,string);

	switch(CommandCount)
	{
	    case 0:
	    {
		   // do X
	    }
	    case 1:
	    {
		  // do Y
	    }
	    case 2:
	    {
			// do Z
		}
	}
	return 1;
}
Are you looking for something like this?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)