new Float:zmb_spawnLoc[MAXPLAYERS+1][3];
new Handle:zmb_Switch;
new String:zmb_Weapon[60];
public Plugin:myinfo =
{
name = "Zombieball for zombie",
author = "TPOLI,KUU[B/IKCM]",
description = "Zombieball mod",
version = VERSION,
url = "www.sourcemod.net"
};
public OnPluginStart()
{
zmb_Switch = CreateConVar("zmb_on","1","Turns the plugin on and off 1/0",FCVAR_NOTIFY);
HookEvent("player_death",DeathEvent);
HookEvent("player_spawn", PlayerSpawn);
// AutoExecConfig(true, "zmb");
// LoadTranslations("zmb.phrases");
}
public DeathEvent(Handle:event,const String:name[],bool:dontBroadcast)
{
GetEventString(event,"weapon",zmb_Weapon,60);
new clientid = GetEventInt(event,"attacker");
new client = GetClientOfUserId(clientid);
new userid = GetEventInt(event,"userid");
new user = GetClientOfUserId(userid);