Hi everyone, here's the script:
PHP Code:
public CountVotbanPlayer(id, key)
{
++g_VotePlayer[key]
for(new i = 0; i <= get_playersnum(1); i++)
{
if(i != g_banPlayer)
{
client_print(i, print_chat, "Player :D")
}
}
return PLUGIN_CONTINUE
}
The task of this to write to all players on the server in the chat "Player" but it is written so that the player under
g_banPlayer -
not to write anything in the chat.
In
g_banPlayer I get players in this way:
PHP Code:
g_banPlayer = g_menuPlayers[id][g_menuPosition[id] * 8 + key];