/leave command not working
#2

okay i have changed it so i only can write /leave while in in some of the 2 rooms

Код:
if (strcmp("/leave", cmdtext, true, 10) == 0)
	{
		if(m4w[playerid] == 1)
		{
		SpawnPlayer(playerid);
		ResetPlayerWeapons(playerid);
		SetPlayerInterior(playerid, 0);
		sw[playerid] = 0;
		m4w[playerid] = 0;
		return 1;
		}
		else
		if(sw[playerid] == 1)
		{
		SpawnPlayer(playerid);
		ResetPlayerWeapons(playerid);
		SetPlayerInterior(playerid, 0);
		sw[playerid] = 0;
		m4w[playerid] = 0;
		return 1;
		}
		else
		{
		SendClientMessage(playerid, COLOR_NORMALRED, "You can only use this command while in war");
		return 1;
		}
	}
but i also want it to be like when i am in one of the 2 rooms i can't write any other commands than /leave ?

please help me
Reply


Messages In This Thread
/leave command not working - by Madsen - 04.03.2011, 14:40
Re: /leave command not working - by Madsen - 04.03.2011, 17:51

Forum Jump:


Users browsing this thread: 1 Guest(s)