I have this bool
Code:
bool:CheckPlayer( const id ) {
new Float:flGametime = get_gametime()
if( g_flLastCmd[ id ] < flGametime ) {
g_flLastCmd[ id ] = flGametime + 1.00
return false
}
if(!is_user_alive(id)) {
ColorChat(id, RED, "[kz#] ^x01You must be alive to use this command...")
} else { /*nothing*/ }
return true
}
And i check all of my commands with it but not working properly, can you help me.
I Want dead peoples dont have acess to commands and if they are alive to work, and also have anti-spam function