SA-MP Forums Archive
Text and Player/Team colours. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Text and Player/Team colours. (/showthread.php?tid=107624)



Text and Player/Team colours. - Andy_McKinley - 10.11.2009

Hey,

Where can I get the Team or Player colours? Or how can I set it? And how can I change and where can I get the text colours? I also need the colour ID's.

Andy.


Re: Text and Player/Team colours. - Lajko1 - 10.11.2009

what the hell lol download 1 gamemode and check defined colors , just copy and past them to your script


Re: Text and Player/Team colours. - [XST]O_x - 10.11.2009

You can also get colors by using SA-MP Color picker.
Look in ****** and download it.


Re: Text and Player/Team colours. - Andy_McKinley - 10.11.2009

I'm talking about things like this. I don't know how to set the colour... I really need help.
Код:
dcmd_ban(playerid, params[])
{
	new index = 0;
  tmp2 = strtok(params, index);
	if (pInfo[playerid][pAdmin] == 0)
	{
		SystemMessage(playerid, "You are not an Administrator.");
		return 1;
	}
  if(!strlen(tmp2))
	{
		SystemMessage(playerid, "Correct usage: '/ban [playername] [reason]'");
		return 1;
	}
	new string[MAX_STRING];
	new second, minute, hour, day, month, year;
  giveplayerid = ReturnUser(tmp2);
	if (IsPlayerConnected(giveplayerid))
	{
		format(string, sizeof(string), "You have been banned by Administrator %s. (Reason: '%s')", PlayerName(playerid), params);
		SystemMessage(giveplayerid, string);
	  if(dini_Exists(KICKPORTAL))
	  {
		  new File:fhandle;
		  new temp[256];
		  fhandle = fopen(KICKPORTAL, io_append);
		  format(temp, sizeof(temp), "\n%s", PlayerName(giveplayerid));
		  fwrite(fhandle, temp);
		  fclose(fhandle);
	  }
		format(string, sizeof(string), "Player %s has been banned by Administrator %s. (Reason: '%s')", PlayerName(giveplayerid), PlayerName(playerid), params);
		SystemMessageToAll(string);
		format(string, sizeof(string), "%s has been banned by Administrator %s. (Reason: '%s')", PlayerName(giveplayerid), PlayerName(playerid), params);
		print(string);
		gettime(hour, minute, second);
		getdate(year, month, day);
		format(string, sizeof(string), "Player %s banned player %s on %d/%d/%d at %d:%d:%d. (Reason: '%s')", PlayerName(playerid), PlayerName(giveplayerid), month, day, year, hour, minute, second, params);
		ServerLog(string);
		KickPlayer(giveplayerid, "");
  }
  	else
  {
		SystemMessage(playerid, "That player is not active.");
	}
  return 1;



Re: Text and Player/Team colours. - Andy_McKinley - 10.11.2009

Talking about changing.