Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Help with some cmd's

$
0
0
So as the title says i have created my server but i couldn't fix one thing so decided to ask on the forums..

Code:

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 1;
  }
  for(new i; i != MAX_PLAYERS; ++i) if (IsPlayerConnected(i)) return SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
  SendClientMessage(playerid,COLOR_PURPLE,"[Gang-Z] You are now invisible on the radar.");
  return 1;
}

dcmd_gzvisible(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 1;
  }
  for(new i; i != MAX_PLAYERS; ++i) if (IsPlayerConnected(i)) return SetPlayerMarkerForPlayer(i,playerid,0xFFFFFFAA);
  SendClientMessage(playerid,COLOR_PURPLE,"[Gang-Z] You are now visible on the radar.");
  return 1;
}

These are 2 cmds made for a faction to go invisible and visible.. Now thing wrong with them is that they dont work.
Nothing Appears..Please help asap

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>