Page 1 of 1

Module: Sven Co-Op Module

Posted: Fri Oct 16, 2026 9:12 pm
by Archive-Poster
here is a little module for svencoop.
there are currently only 3 natives for svencoop and 1 to find offsets in it.

update:
now with set/get deaths (deaths are only updated on resethud)
update 2:
now with some backpackammo support (no all at the moment)

Code: Select all

#if defined _svencoop_included
  #endinput
#endif
#define _svencoop_included

native Float:sc_get_frags(id);          //gets frags for all entitys (includeing players)
native sc_set_frags(id,Float:frags);        //sets frags for all entitys (includeing players)
native sc_get_user_deaths(id);          //gets deaths from player
native sc_set_user_deaths(id,deaths);       //sets deaths from player
native sc_get_bpammo_9mm(id);           //gets ammo for 9mm (mp5, uzi(akimbo))
native sc_set_bpammo_9mm(id,amount);        //sets ammo for 9mm (mp5, uzi(akimbo))
native sc_get_bpammo_rpg(id);           //gets ammo for rpg (rpg luncher)
native sc_set_bpammo_rpg(id,amount);        //sets ammo for rpg (rpg luncher)
native sc_get_bpammo_radio(id);         //gets ammo for radio (gauss, egon)
native sc_set_bpammo_radio(id,amount);      //sets ammo for radio (gauss, egon)
native sc_get_bpammo_snark(id);         //gets ammo for snark
native sc_set_bpammo_snark(id,amount);      //sets ammo for snark
native sc_get_bpammo_shot(id);          //gets ammo for shot (shotgun)
native sc_set_bpammo_shot(id,amount);       //sets ammo for shot (shotgun)
native sc_is_player_ally(id);           //not for players!!!

native save_pv(id,size,filename[]);     //saves privatedata to file (easy to find offsets)