Requirements:
Mods: Sven Co-op 4.5
AMXX: Version 1.8.0 or later
Module: fakemeta, hamsandwich
Code: Select all
/**
* Returns a monster's ally state.
*
* @param entity Entity index.
* @return True if it is, false otherwise.
*/
sc_get_monster_ally(entity)
/**
* Returns a player's health.
*
* @param client Player index. [1 to 32]
* @return Health amount.
*/
sc_get_user_health(client)
/**
* Sets a player's health.
*
* @param client Player index. [1 to 32]
* @param health New health amount.
* @return True if it is, false otherwise.
*/
sc_set_user_health(client, health)
/**
* Returns a player's flashlight battery charge.
*
* @param client Player index. [1 to 32]
* @return Charge percent. [0 to 100]
*/
sc_get_user_flashbat(client)
/**
* Sets a player's flashlight battery charge.
*
* @param client Player index. [1 to 32]
* @param value New charge percent. [0 to 100]
* @return True if it is, false otherwise.
*/
sc_set_user_flashbat(client, value)
/**
* Returns player's H.E.V. Suit battery.
*
* @param client Player index. [1 to 32]
* @return Battery amount. [0 to 999]
*/
sc_get_user_battery(client)
/**
* Sets player's H.E.V. Suit battery.
*
* @param client Player index. [1 to 32]
* @param value New battery amount. [0 to 999]
* @return True if it is, false otherwise.
*/
sc_set_user_battery(client, value)
/**
* Returns player's frags.
*
* @param client Player index. [1 to 32]
* @return Number of frags.
*/
sc_get_user_frags(client)
/**
* Returns player's deaths.
*
* @param client Player index. [1 to 32]
* @return Number of deaths.
*/
sc_get_user_deaths(client)
/**
* Sets a player's scores.
*
* @param client Player index. [1 to 32]
* @param frags Number of frags.
* @param deaths Number of deaths.
* @return True if it is, false otherwise.
*/
sc_set_user_score(client, frags, deaths)
/**
* Returns player's current weapon entity.
*
* @param client Player index. [1 to 32]
* @return Entity index.
*/
sc_get_cur_weapon_entity(client)
/**
* Returns owner from entity.
*
* @param entity Entity index.
* @return Player index. [1 to 32]
*/
sc_get_weapon_owner(entity)
/**
* Returns weapon id from entity.
*
* @param entity Entity index.
* @return Weapon id. [SCW_CROWBAR to SCW_SHOCKRIFLE]
*/
sc_get_weapon_id(entity)
/**
* Returns weapon clip ammo.
*
* @param entity Entity index.
* @return Clip ammo amount. [-1 invalid weapon]
*/
sc_get_weapon_ammo(entity)
/**
* Sets a weapon clip ammo.
*
* @param entity Entity index.
* @param clip New clip ammo value. [0 to 999]
* @return True if it is, false otherwise.
*/
sc_set_weapon_ammo(entity, clip)
/**
* Returns UZI Akimbo second clip ammo.
*
* @param entity Entity index.
* @return Clip ammo amount. [0 to 999]
*/
sc_get_weapon_ammo2(entity)
/**
* Sets a UZI Akimbo second clip ammo.
*
* @param entity Entity index.
* @param clip New clip ammo value. [0 to 999]
* @return True if it is, false otherwise.
*/
sc_set_weapon_ammo2(entity, clip)
/**
* Returns player's backpack ammo.
*
* @param client Player index. [1 to 32]
* @param weapon Weapon id. [SCW_CROWBAR to SCW_SHOCKRIFLE]
* @return Backpack ammo amount. [0 to 999] [-1 invalid bpammo]
*/
sc_get_user_bpammo(client, weapon)
/**
* Sets a player's backpack ammo.
*
* @param client Player index. [1 to 32]
* @param weapon Weapon id. [SCW_CROWBAR to SCW_SHOCKRIFLE]
* @param ammo Backpack ammo value. [0 to 999]
* @return True if it is, false otherwise.
*/
sc_set_user_bpammo(client, weapon, ammo)
/**
* Returns player's m16 grenade ammo.
*
* @param client Player index. [1 to 32]
* @return Backpack ammo amount. [0 to 99]
*/
sc_get_user_bpammo2(client)
/**
* Sets a player's m16 grenade ammo.
*
* @param client Player index. [1 to 32]
* @param ammo Backpack ammo value. [0 to 99]
* @return True if it is, false otherwise.
*/
sc_set_user_bpammo2(client, ammo)
/**
* Strip all weapons from player.
*
* @param client Player index. [1 to 32]
* @return True if it is, false otherwise.
*/
sc_strip_user_weapons(client)
/**
* Spawn a player.
*
* @param client Player index. [1 to 32]
* @return True if it is, false otherwise.
*/
sc_user_spawn(client)
/**
* Returns player's have Long Jump.
*
* @param client Player index. [1 to 32]
* @return True if it is, false otherwise.
*/
sc_get_user_longjump(client)
/**
* Sets a player's Long Jump.
*
* @param client Player index. [1 to 32]
* @param longjump Enable/Disable longjump. [0 to 1]
* @param icon Show pickup icon. [0 to 1]
* @return True if it is, false otherwise.
*/
sc_set_user_longjump(client, longjump, icon)