Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include sdktools
- public OnPluginStart()
- {
- HookEvent("upgrade_pack_used", EventP);
- }
- public Action EventP(Event event, const char[] name, bool dontBroadcast)
- {
- int i = GetClientOfUserId(event.GetInt("userid"));
- int ui = GetClientOfUserId(event.GetInt("upgradeid"));
- float origin[3];
- GetClientAbsOrigin(i,origin);
- origin[2] += 4;
- new pack = CreateEntityByName("weapon_ammo_spawn")
- DispatchSpawn(pack);
- DispatchKeyValueVector(pack, "origin", origin);
- AcceptEntityInput(ui, "kill")
- }
Advertisement
Add Comment
Please, Sign In to add comment