![Abėjingas :/](./images/smilies/1.gif)
Code: Select all
new komandaUsed[33]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /ginklas", "ginklas")
register_logevent("roundas", 2, "1=Round_End");
}
public ginklas(id)
{
if( komandaUsed[id] )
{
client_print(id, print_chat, "jus jau panaudojote sia komanda")
return PLUGIN_HANDLED
}
else
{
if(is_user_alive(id))
{
give_item(id, "weapon_m4a1")
komandaUsed[id] = true;
return PLUGIN_CONTINUE
}
}
}
public roundas(id)
{
komandaUsed[id] = false;
client_print(0, print_chat, "baigesi roundas")
return PLUGIN_HANDLED
}