07.03.2014, 11:50
I've been trying to make this command with some help from the forums. I wanted it to make this like, Setting the player's radar mark invisible when he executes the command.
Could someone tell me what's wrong and why it doesn't work?
Thanks.
pawn Код:
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 = 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;
}
return 1;
}
Thanks.