Is there a way to detect the event command mp_restartgame 1?
For every time you use this command, even if I put the event roundend to finish something, it does not work if the game is restarted, now it is stopped using a command eg sm_slay @ all, it works, example:
PHP Code:
HookEvent("round_end", RoundEnd);
public Action:RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
bClientsShow[client] = false;
}
If I used a sm_slay @all, everything goes normal, but if I use mp_restartgame 1, everything that I put into the "RoundEnd" is ignored.
Thanks.
__________________
My Plugins |
VIEW HERE | I accept private requests, send me a PM.
![Wink](images/smilies/wink.gif)
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet
CZSBrasil TEAM