diff --git a/pawno/include/a_actor.inc b/pawno/include/a_actor.inc new file mode 100644 index 0000000..eda5712 --- /dev/null +++ b/pawno/include/a_actor.inc @@ -0,0 +1,34 @@ +/* SA-MP Actor Functions + * + * (c) Copyright 2015, SA-MP Team + * + */ + +#if defined _actor_included + #endinput +#endif +#define _actor_included +#pragma library actors + +native CreateActor(modelid, Float:X, Float:Y, Float:Z, Float:Rotation); +native DestroyActor(actorid); + +native IsActorStreamedIn(actorid, forplayerid); + +native SetActorVirtualWorld(actorid, vworld); +native GetActorVirtualWorld(actorid); + +native ApplyActorAnimation(actorid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time); +native ClearActorAnimations(actorid); + +native SetActorPos(actorid, Float:X, Float:Y, Float:Z); +native GetActorPos(actorid, &Float:X, &Float:Y, &Float:Z); +native SetActorFacingAngle(actorid, Float:ang); +native GetActorFacingAngle(actorid, &Float:ang); + +native SetActorHealth(actorid, Float:health); +native GetActorHealth(actorid, &Float:health); +native SetActorInvulnerable(actorid, invulnerable = true); +native IsActorInvulnerable(actorid); + +native IsValidActor(actorid); \ No newline at end of file diff --git a/pawno/include/a_http.inc b/pawno/include/a_http.inc new file mode 100644 index 0000000..be43bdc --- /dev/null +++ b/pawno/include/a_http.inc @@ -0,0 +1,24 @@ + /* SA-MP threaded HTTP/1.0 client for pawn + * + * (c) Copyright 2010, SA-MP Team + * + */ + +// HTTP requests +#define HTTP_GET 1 +#define HTTP_POST 2 +#define HTTP_HEAD 3 + +// HTTP error response codes +// These codes compliment ordinary HTTP response codes returned in 'response_code' +// (10x) (20x OK) (30x Moved) (40x Unauthorised) (50x Server Error) +#define HTTP_ERROR_BAD_HOST 1 +#define HTTP_ERROR_NO_SOCKET 2 +#define HTTP_ERROR_CANT_CONNECT 3 +#define HTTP_ERROR_CANT_WRITE 4 +#define HTTP_ERROR_CONTENT_TOO_BIG 5 +#define HTTP_ERROR_MALFORMED_RESPONSE 6 + +native HTTP(index, type, url[], data[], callback[]); + +// example HTTP callback: public MyHttpResponse(index, response_code, data[]) { ... } \ No newline at end of file diff --git a/pawno/include/a_npc.inc b/pawno/include/a_npc.inc new file mode 100644 index 0000000..9d7f11f --- /dev/null +++ b/pawno/include/a_npc.inc @@ -0,0 +1,190 @@ +/* SA-MP NPC Functions + * + * (c) Copyright 2009, SA-MP Team + * + */ + +#if defined _samp_included + #endinput +#endif +#define _samp_included +#pragma library samp + +#pragma tabsize 4 + +#include +#include +#include +#include +#include