Command doesn't work.
#8

Код:
dcmd_gzinvisible(playerid,params[])
{
   #pragma unused params
   if(CanUseGangZ[playerid] == 0)
   {
     SendClientMessage(playerid,COLOR_ERROR,"[ERROR] You must be a Gang-Z Member to use this command.");
     return 0;
   }
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i))
      {
        SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
      }
      SendClientMessage(playerid,COLOR_PURPLE,"[Gang-Z] You are now invisible on Radar.");
      }
      return 1;
}
In this line:
Код:
SendClientMessage(playerid,COLOR_ERROR,"[ERROR] You must be a Gang-Z Member to use this command.");
     return 1;
It should return with 0.
Not tested yet!
Reply


Messages In This Thread
Command doesn't work. - by rakshith122 - 07.03.2014, 11:50
Re: Command doesn't work. - by Sojo12 - 07.03.2014, 11:58
Re: Command doesn't work. - by rakshith122 - 07.03.2014, 12:04
Re: Command doesn't work. - by JeaSon - 07.03.2014, 12:06
Re: Command doesn't work. - by Sojo12 - 07.03.2014, 12:11
Re: Command doesn't work. - by rakshith122 - 07.03.2014, 12:11
Re: Command doesn't work. - by SyntaxQ - 07.03.2014, 12:27
Re: Command doesn't work. - by Sojo12 - 07.03.2014, 12:29
Re: Command doesn't work. - by biker122 - 07.03.2014, 13:18
Re: Command doesn't work. - by rakshith122 - 07.03.2014, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)