native
zpn_gamemode_set_prop
Syntax
native zpn_gamemode_set_prop(const gamemode_id, ePropGameModeRegisters:prop, any:...);
Description
Sets a game mode property.
Parameters
| gamemode_id | Game mode index |
|---|---|
| prop | Property to set, from ePropGameModeRegisters |
| ... | New property value |
Note
The expected value type depends on the property. See
ePropGameModeRegisters in zombie_plague_next_const.inc.
Return
1 on success, 0 if game mode storage is unavailable
Error
If gamemode_id is not a valid game mode index, an error can
be thrown by the underlying array access.