[HELP]Disabling commands when in dm and race
#3

u know yrace, arnt u? i have yrace fs, race scriptings ar there, but dmz ar on my GM, i mean i want to disable commands when player in race,TOO(here is the opposition), and here is my dm command;
Код:
new indm[MAX_PLAYERS];

if(!strcmp(cmdtext, "/dm 1", true)){
   if(indm[playerid] == 0)
   {
   SetPlayerRandomSpawn1(playerid);
	 ResetPlayerWeapons(playerid);
   SetPlayerVirtualWorld(playerid,100);
	 SetPlayerInterior(playerid, 0);
   GivePlayerWeapon(playerid, 26, 999);
   GivePlayerWeapon(playerid, 32, 5999);
   SetPlayerHealth(playerid, 100.0);
   SetPlayerArmour(playerid, 100.0);
   SetPlayerWorldBounds(playerid,1162.9043,1095.9735,-1421.0227,-1524.3269);
	 GetPlayerName(playerid, var0, 25);
   format(var1, 256, "*** %s is at DeathMatch 1 now! (/dm 1 to join!).", var0);
   SendClientMessageToAll(0xFF9900AA, var1);
	 indm[playerid]=1;
	}
	else
	{
	SendClientMessage(playerid,COLOR_RED,"You didnt allow to use any command,you are in a DM ! (type /leave to leave)");
}
   return 1;
  }

public OnPlayerSpawn(playerid) {
indm[playerid]=0;
return 1;
}
and i need a inrace[MAX_PLAYERS] to put here(for disabling commands when player in race), but race scripts ar on fs, dms ar on gm, got the opposition?
Reply


Messages In This Thread
[HELP]Disabling commands when in dm and race - by LasTRace - 03.09.2009, 11:20
Re: [HELP]Disabling commands when in dm and race - by Doppeyy - 03.09.2009, 12:48
Re: [HELP]Disabling commands when in dm and race - by LasTRace - 03.09.2009, 13:20
Re: [HELP]Disabling commands when in dm and race - by Doppeyy - 03.09.2009, 13:57
Re: [HELP]Disabling commands when in dm and race - by LasTRace - 03.09.2009, 17:34
Re: [HELP]Disabling commands when in dm and race - by BlackFoX - 03.09.2009, 17:41
Re: [HELP]Disabling commands when in dm and race - by LasTRace - 03.09.2009, 19:03

Forum Jump:


Users browsing this thread: 3 Guest(s)