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

Quote:
Originally Posted by DaniceMcHarley
View Post
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?
Hey that works, thank you so much!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)