SA-MP Forums Archive
Problem in this command - 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: Problem in this command (/showthread.php?tid=528013)



Problem in this command - krytans - 25.07.2014

While using this in game. Shows sendername each time randomly
Код:
CMD:cnn(playerid, params[])
{
	new result[128];
	if(PlayerInfo[playerid][pAdmin] >= 2){
		if(!sscanf(params, "s[128]", result)){
			format(string, sizeof(string), "~b~%s: ~w~%s",sendername,result);
			foreach (Player, i)
			{
				GameTextForPlayer(i, string, 5000, 6);
			}
		}
		else
		{
		    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cnn [cnn textformat ~n~=Newline ~r~=Red ~g~=Green ~b~=Blue ~w~=White ~y~=Yellow]");
		}
	}
	else
	{
		SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
	}
	return 1;
}



Re: Problem in this command - Stinged - 25.07.2014

Um why don't use just use this?
https://sampwiki.blast.hk/wiki/GameTextForAll


Re: Problem in this command - ViniBorn - 25.07.2014

Why you don't use GameTextForAll?