03.09.2009, 13:20
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;
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?
Код:
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; }