/duty help (+rep)
#4

Quote:
Originally Posted by UnDetectable
Посмотреть сообщение
Код:
#include <zcmd> // Incase you don't use it

CMD:onduty(playerid, params[])
{
	new name[MAX_PLAYER_NAME], str[256];
	GetPlayerName(playerid, name, sizeof(name));
	format(str, sizeof(str), "%s is now On Duty!", name);
	SendClientMessageToAll(0x0099CC, str);
	return 1;
}
About the colors you can ****** it.
Here are some links:
1. https://sampwiki.blast.hk/wiki/Hex_colours
2. http://www.nthelp.com/colorcodes.htm
I dont believe that is sending a faction message to LSPD, and i need it to say ranknames too which are these

Код:
              switch(PlayerInfo[playerid][pRank])
            {
            	case 1: format(string, sizeof(string), "**  POI %s: %s  **", sendername, text);
             	case 2: format(string, sizeof(string), "**  POII %s: %s  **", sendername, text);
                case 3: format(string, sizeof(string), "**  POIII %s: %s  **", sendername, text);
                case 4: format(string, sizeof(string), "**  POIII+1 %s: %s  **", sendername, text);
                case 5: format(string, sizeof(string), "**  Det I %s: %s  **", sendername, text);
                case 6: format(string, sizeof(string), "**  Det II %s: %s  **", sendername, text);
                case 7: format(string, sizeof(string), "**  Det III %s: %s  **", sendername, text);
                case 8: format(string, sizeof(string), "**  Sgt I %s: %s  **", sendername, text);
                case 9: format(string, sizeof(string), "**  Sgt II %s: %s  **", sendername, text);
                case 10: format(string, sizeof(string), "**  Lt I %s: %s  **", sendername, text);
                case 11: format(string, sizeof(string), "**  Lt II %s: %s  **", sendername, text);
                case 12: format(string, sizeof(string), "**  Cpt I %s: %s  **", sendername, text);
                case 13: format(string, sizeof(string), "**  Cpt II %s: %s  **", sendername, text);
                case 14: format(string, sizeof(string), "**  Cmdr %s: %s  **", sendername, text);
                case 15: format(string, sizeof(string), "**  DCoP %s: %s  **", sendername, text);
                case 16: format(string, sizeof(string), "**  ACoP %s: %s  **", sendername, text);
                case 17: format(string, sizeof(string), "**  CoP %s: %s  **", sendername, text);
Reply


Messages In This Thread
/duty help (+rep) - by NickMirra - 15.08.2015, 23:51
Re: /duty help (+rep) - by UnDetectable - 15.08.2015, 23:56
Re: /duty help (+rep) - by TheLegend1 - 15.08.2015, 23:58
Re: /duty help (+rep) - by NickMirra - 16.08.2015, 00:10
Re: /duty help (+rep) - by UnDetectable - 16.08.2015, 00:41
Re: /duty help (+rep) - by Adornil - 18.08.2015, 19:58

Forum Jump:


Users browsing this thread: 2 Guest(s)