PHP Code:
public plugin_init()
{
// you dont need "
register_plugin(PLUGIN,VERSION,AUTHOR)
// an event which is triggered when players spawns
register_event("ResetHUD","event_spawn","be")
}
public client_connect(id)
{
// a string to store the players name.
new name[32]
// a function to get the user's name.
get_user_name(id, name, 31)
// prints your message
client_print(0,print_chat,"%s Has Joined The Game!", name)
}
public event_spawn(id)
{
//you need a small delay just to make sure it gives your weapon
set_task(0.1, "give_weapon", id)
}
public give_weapon(id)
{
//you need the weapons name in here
//an example would be give_item(id,"weapon_deagle")
give_item(id,"42") // so what ever weapon 42 is
}
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.