06.06.2016, 15:54
Try this
PHP код:
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;
}