Quote:
Originally Posted by GXLZPGX
Honestly:
#1: His english completely fails, just like everyone else that posts in the scripting help forum.
#2: This is scripting help, he doesn't need help scripting, he's searching for someone to code this for him. He probably doesn't even know how to use includes.
|
1# ive seen worse
2# what if he just wants an example?
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Grim"
new Kills[33]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Killed, "player", "FwdPlayerKilled")
RegisterHam(Ham_Spawn, "player", "FwdPlayerSpawn", 1)
}
public FwdPlayerKilled(victim, attacker)
{
if(is_user_alive(attacker) && victim != attacker)
{
Kills[attacker]++
if(Kills[attacker] == 3)
{
client_print(attacker, print_chat, "You have killed 3 guys in a row.")
}
}
}
public FwdPlayerSpawn(id)
{
Kills[id]=0
}
__________________