Making many commands in one command
#1

Hi, I'm trying to turn these commands /takecrate, /deploycrate. Into /crate take/deploy/others

I know it's something to do with sscanf maybe. I just can't put my finger on it. Would you use the params to check if thats the ending of the command they are typing?
Код:
COMMAND:crate(playerid, params[])
{
	if(SpawnedIn[playerid] == 1 && LoggedIn[playerid] == 1)
	{
	    if(params == "take")
	    {

	    }
	    
	    if(params == "deploy")
	    {

	    }
	}
	return 1;
}
Reply


Messages In This Thread
Making many commands in one command - by Pawnify - 16.07.2015, 22:30
Re: Making many commands in one command - by rymax99 - 16.07.2015, 22:37
Re: Making many commands in one command - by Pawnify - 16.07.2015, 22:38
Re: Making many commands in one command - by rymax99 - 16.07.2015, 23:06
Re: Making many commands in one command - by Pawnify - 16.07.2015, 23:11

Forum Jump:


Users browsing this thread: 1 Guest(s)