20.08.2018, 02:32
How to disable command when player death?
I tried when player health is below 1, he can't use command, but it didn't work and he still can use it.
Like:
I tried when player health is below 1, he can't use command, but it didn't work and he still can use it.
Like:
PHP код:
new Float:health;
GetPlayerHealth(playerid, health);
if(health < 0) return SendClienMessage(playerid, "You cannot use command while dead");