 |
|
Member
|

09-01-2012
, 19:23
Re: green text
|
#3
|
Quote:
Originally Posted by SpaceRip
is it so fucking hard to create code?
PHP Code:
fzp_print( id, message[], any:... ) { static buffer[256], i, argscount argscount = numargs()
vformat(buffer, charsmax(buffer), message, 3) if (!id) { static player for (player = 1; player <= g_maxplayers; player++) { if (!is_user_connected(player)) continue;
if (player == 0) continue; static changed[5], changedcount changedcount = 0 // Replace LANG_PLAYER with player id for (i = 2; i < argscount; i++) { if (getarg(i) == LANG_PLAYER) { setarg(i, 0, player) changed[changedcount] = i changedcount++ } } message_begin(MSG_ONE_UNRELIABLE, fzp_msg_saytext, _, player) write_byte(player) write_string(buffer) message_end() for (i = 0; i < changedcount; i++) setarg(changed[i], 0, LANG_PLAYER) } } else { if (is_user_connected(id)) { message_begin(MSG_ONE, fzp_msg_saytext, _, id) write_byte(id) write_string(buffer) message_end() } } }
How to use`?
PHP Code:
fzp_print(id, "^x01 normal color, ^x04 green color ^x03 team color")
Was it hard???
Deem...
|
thank you so much to writing the code for me but i don't see how can i add it to this plugin http://forums.alliedmods.net/showthread.php?p=652449
if you can merge it it will be appreciated
|
|
|
|