Quote:
Originally Posted by Checkmarks
Such as?
|
It was unapproved because this plugin fails to do as stated. This also doesn't print anything to anyone other than yourself (and IF it did print to all teammates, who is the one who needs help? [it doesn't give a name of who said help]). You would need to do something like this to make it work:
PHP Code:
public msgAllNotSelf(id) {
new players[32], totalplayers
get_players(players, totalplayers)
for (new i = 0; i < totalplayers; i++) {
if (get_user_team(players[i]) == get_user_team(id)) { // everyone on same team
if (players[i] != id) // everyone but self
client_print(players[i], print_chat, "[AMXX] ZOMG!") // message to be printed
}
}
}
This isnt optimized, but you should get the idea.
OR (simpler)
PHP Code:
public cmdTeamSay(id) {
client_cmd(id, "say_team ^"Need help @ Bombsite A^"") // force user to use say_team
}
But you still failed to do either method, and that is why it is (mainly) unapproved. Test it before submitting.
__________________