scripting/include/cssdm.inc
changeset 1 a23c4930415e
parent 0 67dcd379a2d5
child 16 70bb5195e8f2
     1.1 --- a/scripting/include/cssdm.inc	Sun Jun 24 21:58:09 2007 +0000
     1.2 +++ b/scripting/include/cssdm.inc	Sun Jun 24 21:59:51 2007 +0000
     1.3 @@ -166,6 +166,45 @@
     1.4   */
     1.5  native DM_StripBotItems(client);
     1.6  
     1.7 +/**
     1.8 + * Returns the spawn waiting time.
     1.9 + *
    1.10 + * @return				Spawn wait time, in seconds.
    1.11 + */
    1.12 +native Float:DM_GetSpawnWaitTime();
    1.13 +
    1.14 +/**
    1.15 + * Respawns a player using CS:S's low level respawning function.  This can be 
    1.16 + * called even if the player is not dead.
    1.17 + *
    1.18 + * @param client		Client index.
    1.19 + * @param fullRespawn	If true, client will be forwarded through player_spawn 
    1.20 + *						callbacks.
    1.21 + * @noreturn
    1.22 + * @error				Invalid client index or client not in game.
    1.23 + */
    1.24 +native DM_RespawnClient(client, bool:fullRespawn=true);
    1.25 +
    1.26 +/**
    1.27 + * Returns whether or not a client is alive.
    1.28 + *
    1.29 + * @param client		Client index.
    1.30 + * @return				True if alive, false if dead.
    1.31 + * @error				Invalid client index or client not in game.
    1.32 + */
    1.33 +native DM_IsClientAlive(client);
    1.34 +
    1.35 +/**
    1.36 + * Gives ammo to a player.
    1.37 + *
    1.38 + * @param client		Client index.
    1.39 + * @param type			Ammo type (>=0).
    1.40 + * @param count			Ammo amount to give.
    1.41 + * @param noSound		If true, the ammo sound will be suppressed.
    1.42 + * @return				Actual ammo amount given.
    1.43 + * @error				Invalid client index or client not in game.
    1.44 + */
    1.45 +native DM_GiveClientAmmo(client, type, count, bool:noSound=false);
    1.46  
    1.47  /**
    1.48   * Do not edit below this line!