Commands, some small help ...
#1

Hi all!

I do some areas for block commands in gang teritories. But i have problem with commands.

I make this:
Код:
public OnPlayerCommandReceived( playerid, cmdtext[ ] )
{
if ( IsPlayerInAnyDynamicArea( playerid ) )
	{
	    if ( !strcmp( cmdtext, "/god", true ) ||
			 !strcmp( cmdtext, "/goto", true ) ||
			 !strcmp( cmdtext, "/car", true ) ||
			 !strcmp( cmdtext, "/v", true ) ||
			 !strcmp( cmdtext, "/get", true ) ||
			 !strcmp( cmdtext, "/arme", true ) ||
			 !strcmp( cmdtext, "/s", true ) ||
			 !strcmp( cmdtext, "/l", true ) ||
			 !strcmp( cmdtext, "/wgm", true ) ||
			 !strcmp( cmdtext, "/rw", true ) ||
			 !strcmp( cmdtext, "/ww", true ) ||
			 !strcmp( cmdtext, "/lweaps", true ) )
		return 0;
	}
return 1;
}
Ok, if i type for exemple: /ww, the command won't execute, but if I use /ww(Space) the command will execute ... what can i do? I use ZCMD ...
Reply


Messages In This Thread
Commands, some small help ... - by Edvin - 16.05.2012, 15:51
Re: Commands, some small help ... - by Ballu Miaa - 16.05.2012, 15:53
Re: Commands, some small help ... - by Edvin - 16.05.2012, 16:00
Re: Commands, some small help ... - by MichaelProPlayer - 16.05.2012, 16:14
Re: Commands, some small help ... - by Kirollos - 16.05.2012, 16:19
Re: Commands, some small help ... - by Kirollos - 16.05.2012, 16:22
Re: Commands, some small help ... - by Edvin - 16.05.2012, 16:56

Forum Jump:


Users browsing this thread: 3 Guest(s)