SA-MP Forums Archive
ID... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ID... (/showthread.php?tid=643420)



ID... - maksicnm - 19.10.2017

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;
}



Re: ID... - Wiruspwns - 19.10.2017

Just get on this web page. and read more about your function.