Command to put on/off local chat
#1

Hello folks,

I was tried to create a command so players can decide to use local chat or not, but I failed hard time.

The command code look like this:

Код:
if (strcmp("/local", cmdtext, true) == 0)
	{
		if(localchat[playerid] == 0)
		{
		    localchat[playerid] = 1;
		}else{
		    localchat[playerid] = 0;
		}
		return 1;
	}
But it's not working, can somebody help me fix this or is this not possible?

Thanks!
Reply


Messages In This Thread
Command to put on/off local chat - by [KMA]DlennartD - 07.07.2010, 20:54
Re: Command to put on/off local chat - by Hiddos - 07.07.2010, 20:56
Re: Command to put on/off local chat - by CAR - 07.07.2010, 20:59
Re: Command to put on/off local chat - by Hiddos - 07.07.2010, 21:02
Re: Command to put on/off local chat - by CAR - 07.07.2010, 21:03
Re: Command to put on/off local chat - by Hiddos - 07.07.2010, 21:04

Forum Jump:


Users browsing this thread: 1 Guest(s)