@Natsheh
Thanks for the link on id.
How could I do that ? Like using an if() statement ?
@fysiks
I'm not using a colorChat() function. The original plugin is written for AMXX 1.8.2, and it had it's own colorChat() function, since I'm using AMXX 1.8.3 I completely removed that colorChat() function and replaced colorChat with client_print_color and also changed the parameters accordingly.
For example, this is from the original plugin:
Code:
colorChat(szPlayers[i], CHATCOLOR_GREEN, "%L", LANG_SERVER, "MM_TIME_PLAY_BONUS", iTime, iTmpCash)
Code:
MM_TIME_PLAY_BONUS = You are played $t%d h.$g in row and awarded $t%d$$g bonus
I've changed it to this which works:
Code:
client_print_color(szPlayers[i], print_team_default, "^4%L", LANG_SERVER, "MM_TIME_PLAY_BONUS", iTime, iTmpCash)
Code:
MM_TIME_PLAY_BONUS = You have played ^3%d h.^4 in a row, and awarded ^3%d$^4 bonus
But not this particular one:
Code:
colorChat(id, CHATCOLOR_GREEN, "* %L", id, "YOUR_RANK_IS", iRankPos, iRankMax, izStats[STATS_KILLS], izStats[STATS_HITS], ((effec(izStats) + accuracy(izStats)) / 2))
->
Code:
client_print_color(id, id, "^4* %L", id, "YOUR_RANK_IS", iRankPos, iRankMax, izStats[STATS_KILLS], izStats[STATS_HITS], ((effec(izStats) + accuracy(izStats)) / 2))
Thanks for the replies.