19.10.2017, 18:45
So, i make hiding admin toggleign cmd, but i probably need to put foreach or some lik that...I tested it id mess up (example: /tign send you message that you hided your ign, but it still appear and other player's ign goes hided)
Код HTML:
YCMD:tign(playerid, params[], help)
{
#pragma unused help
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""LJUB"AG-RP | "BELA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] < 2) return SCM(playerid,-1,""LJUB"AG-RP | "BELA"Samo Admini (AL 2+)!");
if(Tag[playerid] == 1)
{
for(new i = GetPlayerPoolSize(); i != -1; --i) ShowPlayerNameTagForPlayer(playerid, i, false);
SCM(playerid, -1, ""LJUB"AG-RP | "BELA"Sakrili ste Vas IGN!");
Tag[playerid] = 0;
}
else if(Tag[playerid] = 0)
{
for(new i = GetPlayerPoolSize(); i != -1; --i) ShowPlayerNameTagForPlayer(playerid, i, true);
SCM(playerid, -1, ""LJUB"AG-RP | "BELA"Prikazali ste Vas IGN!");
Tag[playerid] = 1;
}
return 1;
}

