Problem in this command
#1

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;
}
Reply
#2

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

Why you don't use GameTextForAll?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)