plugins/include/sdktools_functions.inc
changeset 955 c59162dec673
parent 954 3dd58fa4ccdc
child 980 2fc38d36ee63
     1.1 --- a/plugins/include/sdktools_functions.inc	Sat Jun 16 18:03:05 2007 +0000
     1.2 +++ b/plugins/include/sdktools_functions.inc	Sat Jun 16 18:27:23 2007 +0000
     1.3 @@ -46,6 +46,40 @@
     1.4   * @param client		Client index.
     1.5   * @param slot			Slot index (mod specific).
     1.6   * @return				Entity index on success, -1 if no weapon existed.
     1.7 - * @error				Invalid client or client notin game, or lack of mod support.
     1.8 + * @error				Invalid client or client not in game, or lack of mod support.
     1.9 + */
    1.10 +native GetPlayerWeaponSlot(client, slot);
    1.11 +
    1.12 +/**
    1.13 + * Ignites a player on fire.
    1.14 + *
    1.15 + * @param client		Client index.
    1.16 + * @param time			Number of seconds to set on fire.
    1.17 + * @param npc			True to only affect NPCs.
    1.18 + * @param size			Unknown.
    1.19 + * @param level			Unknown.
    1.20 + * @noreturn
    1.21 + * @error				Invalid client or client not in game, or lack of mod support.
    1.22   */
    1.23 -native GetPlayerWeaponSlot(client, slot);
    1.24 \ No newline at end of file
    1.25 +native IgnitePlayer(client, Float:time, bool:npc=false, Float:size=0.0, bool:level=false);
    1.26 +
    1.27 +/**
    1.28 + * Extinguishes a player that is on fire.
    1.29 + *
    1.30 + * @param client		Client index.
    1.31 + * @noreturn
    1.32 + * @error				Invalid client or client not in game, or lack of mod support.
    1.33 + */
    1.34 +native ExtinguishPlayer(client);
    1.35 +
    1.36 +/**
    1.37 + * Teleports a player.
    1.38 + *
    1.39 + * @param client		Client index.
    1.40 + * @param origin		New origin, or NULL_VECTOR for no change.
    1.41 + * @param angles		New angles, or NULL_VECTOR for no change.
    1.42 + * @param velocity		New velocity, or NULL_VECTOR for no change.
    1.43 + * @noreturn
    1.44 + * @error				Invalid client or client not in game, or lack of mod support.
    1.45 + */
    1.46 +native TeleportPlayer(client, const Float:origin[3], const Float:angles[3], const Float:velocity[3]);