Hello guys i want to make this plugin to give chance once per round and not with the time
(example: if i write /reviveme me and command used say "Try again in x seconds.")
and i want to make it to give one chance per round
and something else i want to make it to give more chance to admins
(example: admins 15% chance players 10% chance)
like this
PHP Code:
register_cvar("spawnchance_odds","100")
new ChanceAmount = random(get_cvar_num("spawnchance_odds"))
if (get_user_flags(id) & ADMIN_IMMUNITY)
{
if (ChanceAmount <= 15)
{
client_print(id,print_chat, "You win! Prepare to be respawned!")
}
else if (ChanceAmount > 15)
{
client_print(id,print_chat, "Sorry, you didn't respawn this time!")
}
}
else
{
if (ChanceAmount <= 10)
{
client_print(id,print_chat, "You win! Prepare to be respawned!")
}
else if (ChanceAmount > 10)
{
client_print(id,print_chat, "Sorry, you didn't respawn this time!")
}
}