16.08.2015, 00:10
Quote:
Код:
#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; } Here are some links: 1. https://sampwiki.blast.hk/wiki/Hex_colours 2. http://www.nthelp.com/colorcodes.htm |
Код:
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);