1 command available
#1

hey is there a way when i can do like
m4w = 1
or
sw = 1
then i can only type the /leave command(so i cant use commands like /heal, /respawn etc..)

i can show you what i have made so far.

Код:
if (strcmp("/leave", cmdtext, true, 10) == 0)
	{
		if(m4w[playerid] == 1)
		{
		SpawnPlayer(playerid);
		ResetPlayerWeapons(playerid);
		SetPlayerInterior(playerid, 1);
		sw[playerid] = 0;
		m4w[playerid] = 0;
		SetPlayerPos(playerid, 292.8136,-35.3702,1001.5156);
		return 1;
		}
		else
		if(sw[playerid] == 1)
		{
		SpawnPlayer(playerid);
		ResetPlayerWeapons(playerid);
		SetPlayerInterior(playerid, 1);
		sw[playerid] = 0;
		m4w[playerid] = 0;
		SetPlayerPos(playerid, 292.8136,-35.3702,1001.5156);
		return 1;
		}
		else
		{
		SendClientMessage(playerid, COLOR_NORMALRED, "You can only use this command while in war");
		return 1;
		}
	}
thx for your help
Reply


Messages In This Thread
1 command available - by Madsen - 09.03.2011, 11:51
Re: 1 command available - by Roomeo - 09.03.2011, 12:02
Re: 1 command available - by Skylar Paul - 09.03.2011, 12:16
Re: 1 command available - by alpha500delta - 09.03.2011, 12:25
Re: 1 command available - by Madsen - 09.03.2011, 13:44
Re: 1 command available - by Madsen - 09.03.2011, 20:22
Re: 1 command available - by Marricio - 09.03.2011, 21:15
Re: 1 command available - by Madsen - 10.03.2011, 13:21
Re: 1 command available - by Madsen - 11.03.2011, 13:55

Forum Jump:


Users browsing this thread: 6 Guest(s)