Skip to content

Commit

Permalink
Missing functions and callbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Less committed Jul 22, 2019
1 parent 17326d9 commit a9da550
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions a_actor.inc
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,4 @@ native IsActorInvulnerable(actorid);
/// <remarks>This function was added in <b>SA-MP 0.3.7</b> and will not work in earlier versions!</remarks>
/// <returns><b><c>1</c></b> if the actor is valid, <b><c>0</c></b> if not.</returns>
native IsValidActor(actorid);

1 change: 1 addition & 0 deletions a_http.inc
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@
native HTTP(index, type, const url[], const data[], const callback[]);

// example HTTP callback: public MyHttpResponse(index, response_code, data[]) { ... }

1 change: 1 addition & 0 deletions a_npc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -635,3 +635,4 @@ forward OnVehicleStreamOut(vehicleid);
forward OnRecordingPlaybackEnd();

// --------------------------------------------------

1 change: 1 addition & 0 deletions a_objects.inc
Original file line number Diff line number Diff line change
Expand Up @@ -640,3 +640,4 @@ native SetPlayerObjectMaterialText(playerid, objectid, const text[], materialind
/// <remarks>This function only affects the camera collision of objects created AFTER its use - it does not toggle existing objects' camera collisions.</remarks>
/// <remarks>This only works outside the map boundaries (past <b><c>-3000</c></b>/<b><c>3000</c></b> units on the x and/or y axis).</remarks>
native SetObjectsDefaultCameraCol(disable);

15 changes: 15 additions & 0 deletions a_players.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2437,3 +2437,18 @@ native CancelSelectTextDraw(playerid); // cancel textdraw selection with the mou
/// <remarks>There is a limit as to how many explosions can be seen at once by a player. This is roughly 10.</remarks>
/// <returns>This function always returns <b><c>1</c></b>, even if the function failed to excute (player doesn't exist, invalid radius, or invalid explosion type).</returns>
native CreateExplosionForPlayer(playerid, Float:X, Float:Y, Float:Z, type, Float:Radius);

/// <summary>Fetch the GPCI of a user, this is linked to SAMP/GTA on their computer.</summary>
/// <param name="playerid">The ID of the player to get the unique ID of</param>
/// <param name="serial">The destination string for the ID</param>
/// <param name="maxlen">The length of the destination string</param>
native gpci(playerid, serial[], maxlen = sizeof (serial));

/// <summary>Perform a memory check on the client.</summary>
/// <param name="playerid">The ID of the player to check</param>
/// <param name="type">The type of check to perform</param>
/// <param name="memAddr">The base address to check</param>
/// <param name="memOffset">The offset from the base address</param>
/// <param name="byteCount">The number of bytes to check</param>
native SendClientCheck(playerid, type, memAddr, memOffset, byteCount);

16 changes: 16 additions & 0 deletions a_samp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3173,4 +3173,20 @@ forward OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:
/// </returns>
forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);

/// <summary>This callback is called when a SendClientCheck request comletes</summary>
/// <param name="playerid">The ID of the player checked</param>
/// <param name="type">The type of check performed</param>
/// <param name="arg"></param>
/// <param name="response">The result of the check</param>
/// <seealso name="SendClientCheck"/>
forward OnClientCheckResponse(playerid, type, arg, response);

/// <summary>This callback is called when a SendClientCheck request comletes</summary>
/// <param name="playerid">The ID of the player who got cash from the game</param>
/// <param name="amount">The amount of cash given</param>
/// <param name="source">Where the money came from</param>
/// <remarks>Doesn't work</remarks>
forward OnScriptCash(playerid, amount, source);

// --------------------------------------------------

1 change: 1 addition & 0 deletions a_sampdb.inc
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,4 @@ native db_get_result_mem_handle(DBResult:result);

native db_debug_openfiles();
native db_debug_openresults();

0 comments on commit a9da550

Please sign in to comment.