Only for admin level 9
#8

Код:
if (strcmp("/opengate", cmdtext, true, 10) == 0)
{
   if(AccInfo[playerid][Level] == 9 || AccInfo[playerid][Level] == 10)
   {
      MoveObject(gate,1627.48156738,641.35876465,5.56952 858, 3.0);
      GameTextForPlayer(playerid, "~w~Gate opened, Welcome", 5000, 5);
      return 1;
   }
   else
   {
      SendClientMessage(playerid, COLOR_HERE, "You are not allowed to use this commmand!");
      return 1;
   }
}
if (strcmp("/closegate", cmdtext, true, 10) == 0)
{
   if(AccInfo[playerid][Level] == 9 || AccInfo[playerid][Level] == 10)
  {
       MoveObject(gate,1627.47692871,641.25878906,13.8192 3294, 3.0);
       GameTextForPlayer(playerid, "~w~Gate close, Goodbye", 5000, 5);
       return 1;
   }
   else
   {
      SendClientMessage(playerid, COLOR_HERE, "You are not allowed to use this commmand!");
      return 1;
   }
}
where i highlighted COLOR_HERE, you need to change that to a color.. any color that you want
Reply


Messages In This Thread
Only for admin level 9 - by DexToxz - 20.11.2011, 10:28
Re: Only for admin level 9 - by SmiT - 20.11.2011, 10:29
Re: Only for admin level 9 - by DexToxz - 20.11.2011, 10:43
Re: Only for admin level 9 - by Joshb93 - 20.11.2011, 10:45
Re: Only for admin level 9 - by SmiT - 20.11.2011, 10:46
Re: Only for admin level 9 - by DexToxz - 20.11.2011, 10:48
Re: Only for admin level 9 - by Joshb93 - 20.11.2011, 10:49
Re: Only for admin level 9 - by Joshb93 - 20.11.2011, 10:54
Re: Only for admin level 9 - by =WoR=G4M3Ov3r - 20.11.2011, 10:55
Re: Only for admin level 9 - by Joshb93 - 20.11.2011, 10:57

Forum Jump:


Users browsing this thread: 1 Guest(s)