Skip to content

Commit

Permalink
MVP plugin upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel-itv committed Feb 14, 2023
1 parent 9559a1f commit 4b0be7a
Show file tree
Hide file tree
Showing 3 changed files with 1,160 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/include/amxx4u.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#if defined _amxx4u_included
#endinput
#endif
#define _amxx4u_included

#if !defined ForPlayers
#define ForPlayers(%1) for(new %1 = 1; %1 <= MAX_PLAYERS; %1++)
#endif

#if !defined ForArray
#define ForArray(%1,%2) for(new %1 = 0; %1 < sizeof %2; %1++)
#endif

#if !defined ForDynamicArray
#define ForDynamicArray(%1,%2) for(new %1 = 0; %1 < ArraySize(%2); %1++)
#endif

#if !defined ForRange
#define ForRange(%1,%2,%3) for(new %1 = %2; %1 <= %3; %1++)
#endif

#define MAX_NAME MAX_NAME_LENGTH // 32
#define MAX_SAFE_NAME MAX_NAME * 2 // 64
#define MAX_DESC MAX_MENU_LENGTH // 512
#define MAX_IP MAX_IP_LENGTH // 16
#define MAX_IP_PORT MAX_IP_WITH_PORT_LENGTH // 22
#define MAX_AUTHID MAX_AUTHID_LENGTH // 64
#define MAX_PATH MAX_RESOURCE_PATH_LENGTH * 2 // 128
#define MAX_MOTD MAX_MOTD_LENGTH // 1536
#define MAX_USER_INFO MAX_USER_INFO_LENGTH // 256
#define MAX_MENU MAX_MENU_LENGTH // 512
#define MAX_MESSAGE 192

native get_rank_points(index);
native set_rank_points(index, value);
Loading

0 comments on commit 4b0be7a

Please sign in to comment.