Well, my first creation have many problem's.
Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init() {
register_plugin("Slapper","0.1","Zamirdj");
register_forward(FM_PlayerPreThink,"fw_prethink");
}
public fw_prethink(id)
{
if( get_user_team(id) == 2)
{
set_hudmessage(255, 0, 0, -1.0, 0.01)
show_hudmessage(id, "<Hudmessage>")
user_slap(id, 0, 1)
}
}
Works but i want to know how i can stop the loop of the slap because the slap is continous.
And i want to know anothers variables to the command "if", to make something how the "Connected People Welcome Message", etc.
See ya~
PD: Sorry for my bad english x.x