Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* SA-MP Include Count
- *
- * (c) by Kaliber, 2013
- *
- */
- #include <a_samp>
- static counter[8];
- /******************************************************************************/
- native C_CreateObject(modelid,Float:X,Float:Y,Float:Z,Float:r1,Float:r2,Float:r3,Float:dis) = CreateObject;
- native C_CreatePickup(modelid,type,Float:X,Float:Y,Float:Z,World) = CreatePickup;
- native C_Create3DTextLabel(text[],color,Float:X,Float:Y,Float:Z,Float:DrawDistance,virtualworld,testLOS) = Create3DTextLabel;
- native C_CreateVehicle(modelid,Float:X,Float:Y,Float:Z,Float:A,c1,c2,respawn=-1) = CreateVehicle;
- native C_AddStaticVehicle(modelid,Float:X,Float:Y,Float:Z,Float:A,c1,c2) = AddStaticVehicle;
- native C_AddStaticVehicleEx(modelid,Float:X,Float:Y,Float:Z,Float:A,c1,c2,respawn=-1) = AddStaticVehicleEx;
- native C_SetPlayerMapIcon(playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style) = SetPlayerMapIcon;
- native C_CreatePlayer3DTextLabel(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer, attachedvehicle, testLOS) = CreatePlayer3DTextLabel;
- native C_GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy) = GangZoneCreate;
- native C_CreateMenu(title[], columns, Float:x, Float:y, Float:col1width, Float:col2width) = CreateMenu;
- forward C_OnGameModeInit();
- /******************************************************************************/
- #if defined _ALS_CreateObject
- #undef CreateObject
- #else
- #define _ALS_CreateObject
- #endif
- #define CreateObject _CreateObject
- stock _CreateObject(modelid,Float:X,Float:Y,Float:Z,Float:r1,Float:r2,Float:r3,Float:dis) {
- counter[0]++;
- return C_CreateObject(modelid,X,Y,Z,r1,r2,r3,dis);
- }
- #if defined _ALS_CreatePickup
- #undef CreatePickup
- #else
- #define _ALS_CreatePickup
- #endif
- #define CreatePickup _CreatePickup
- stock _CreatePickup(modelid,type,Float:X,Float:Y,Float:Z,World) {
- counter[1]++;
- return C_CreatePickup(modelid,type,X,Y,Z,World);
- }
- #if defined _ALS_Create3DTextLabel
- #undef Create3DTextLabel
- #else
- #define _ALS_Create3DTextLabel
- #endif
- #define Create3DTextLabel _Create3DTextLabel
- stock _Create3DTextLabel(text[],color,Float:X,Float:Y,Float:Z,Float:DrawDistance,virtualworld,testLOS) {
- counter[2]++;
- return C_Create3DTextLabel(text,color,X,Y,Z,DrawDistance,virtualworld,testLOS);
- }
- #if defined _ALS_CreateVehicle
- #undef CreateVehicle
- #else
- #define _ALS_CreateVehicle
- #endif
- #define CreateVehicle _CreateVehicle
- stock _CreateVehicle(modelid,Float:X,Float:Y,Float:Z,Float:A,c1,c2,respawn=-1) {
- counter[3]++;
- return C_CreateVehicle(modelid,X,Y,Z,A,c1,c2,respawn);
- }
- #if defined _ALS_AddStaticVehicle
- #undef AddStaticVehicle
- #else
- #define _ALS_AddStaticVehicle
- #endif
- #define AddStaticVehicle _AddStaticVehicle
- stock _AddStaticVehicle(modelid,Float:X,Float:Y,Float:Z,Float:A,c1,c2) {
- counter[3]++;
- return C_CreateVehicle(modelid,X,Y,Z,A,c1,c2);
- }
- #if defined _ALS_AddStaticVehicleEx
- #undef AddStaticVehicleEx
- #else
- #define _ALS_AddStaticVehicleEx
- #endif
- #define AddStaticVehicleEx _AddStaticVehicleEx
- stock _AddStaticVehicleEx(modelid,Float:X,Float:Y,Float:Z,Float:A,c1,c2,respawn=-1) {
- counter[3]++;
- return C_CreateVehicle(modelid,X,Y,Z,A,c1,c2,respawn);
- }
- #if defined _ALS_SetPlayerMapIcon
- #undef SetPlayerMapIcon
- #else
- #define _ALS_SetPlayerMapIcon
- #endif
- #define SetPlayerMapIcon _SetPlayerMapIcon
- stock _SetPlayerMapIcon(playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style) {
- counter[4]++;
- return C_SetPlayerMapIcon(playerid,iconid,x,y,z,markertype,color,style);
- }
- #if defined _ALS_CreatePlayer3DTextLabel
- #undef CreatePlayer3DTextLabel
- #else
- #define _ALS_CreatePlayer3DTextLabel
- #endif
- #define CreatePlayer3DTextLabel _CreatePlayer3DTextLabel
- stock _CreatePlayer3DTextLabel(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer, attachedvehicle, testLOS) {
- counter[5]++;
- return C_CreatePlayer3DTextLabel(playerid, text, color, X, Y, Z, DrawDistance, attachedplayer, attachedvehicle, testLOS);
- }
- #if defined _ALS_GangZoneCreate
- #undef GangZoneCreate
- #else
- #define _ALS_GangZoneCreate
- #endif
- #define GangZoneCreate _GangZoneCreate
- stock _GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy) {
- counter[6]++;
- return C_GangZoneCreate(minx, miny, maxx, maxy);
- }
- #if defined _ALS_CreateMenu
- #undef CreateMenu
- #else
- #define _ALS_CreateMenu
- #endif
- #define CreateMenu _CreateMenu
- stock _CreateMenu(title[], columns, Float:x, Float:y, Float:col1width, Float:col2width) {
- counter[7]++;
- return C_CreateMenu(title, columns, x, y, col1width, col2width);
- }
- public OnGameModeInit() {
- SetTimer("C_Variablen_Ausgeben",1000*5,0);
- return CallLocalFunction("C_OnGameModeInit", "");
- }
- #if defined _ALS_OnGameModeInit
- #undef OnGameModeInit
- #else
- #define _ALS_OnGameModeInit
- #endif
- #define OnGameModeInit C_OnGameModeInit
- forward C_Variablen_Ausgeben();
- public C_Variablen_Ausgeben() {
- print("\n-----------------------------------------");
- printf("| \tObjekte: \t%d | %d\t|",counter[0],MAX_OBJECTS);
- printf("| \tPickups: \t%d | %d\t|",counter[1],MAX_PICKUPS);
- printf("| \tGlobal 3D:\t%d | 1024\t|",counter[2]);
- printf("| \tAutos: \t\t%d | %d\t|",counter[3],MAX_VEHICLES);
- printf("| \tMapIcons:\t%d | 100\t\t|",counter[4]);
- printf("| \tPlayer 3D:\t%d | 1024\t|",counter[5]);
- printf("| \tGangZones:\t%d | 1024\t|",counter[6]);
- printf("| \tMenus: \t\t%d | 128\t\t|",counter[7]);
- print("-----------------------------------------");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement