Hello there,
I've tryed to catch the best player of the map by using plugin_end, and another action by that. Ill show you guys what i've tried and what the problem is.
PHP Code:
public plugin_end()
{
for (new i; i <get_maxplayers(); i++)
{
if (Quest[i] == 10)
{
Checktopplayer(i)
}
}
}
public Checktopplayer(id)
{
new name[32]
get_user_name(id, name, 31)
for (new i; i <get_maxplayers(); i++)
{
if (get_user_frags(id) > get_user_frags(i))
{
client_cmd(0, "spk %s", Sound)
Quest[id]++
ColorChat(0, GREY, "%s ^4%s^1 has ^4unlocked^1 a new quest! ^3(%i / 15)", Prefix, name, Quest[id])
}
}
}
The problem is, it doesnt work. And it doesnt continue changing the map it just stays at Time left: 0:00