The script i am currently working on shall have a weapon menu which is only supposed to be enabled when there are 2 players left alive.
That is not a problem, but when there are two people left i want a message like: "Gun menu enabled. Type: /guns " or something similar but i canīt get it working.
PHP Code:
public plugin_init()
{
new players[32], num;
get_players(players, num);
if (num == 2)
{
client_print(0, print_chat, "Gun menu enabled. Type: /guns");
}
}
Does not work
I also tried:
PHP Code:
public plugin_init()
{
client_print(0, print_chat, "Gun menu enabled. Type: /guns");
}
But that doesn't work either