How can I make it work?
I am a beginner, so don't judge me please... and help me...
I need like... If a person types "/spawn" in the chat he/she can spawn, but only 2 time per round, and I have no idea how to make it...
and look at my bad, really bad scripting: (

)
PHP Code:
public plugin_init()
{
register_plugin("Vn", "0.1", "Alex")
register_clcmd("say /spawn","user_spawn")
}
PHP Code:
public user_spawn(id){
for(new i = 0; i < 2; i++ )
{
player = players[i];
if(is_user_alive(player) && get_user_flags(player) & ADMIN_LEVEL_G)
{
spawn(id)
}
}
}