|  | 
|  | 1 | +#define BUILDMODAPI_VER 3 | 
|  | 2 | +#define BUILDMOD_VER "0.71" | 
|  | 3 | +#define MAX_HOOK_ENTITIES 4096 | 
|  | 4 | + | 
|  | 5 | +/** | 
|  | 6 | + * Register an entity owner. | 
|  | 7 | + *  | 
|  | 8 | + * @param entity_index		Entity index. | 
|  | 9 | + * @param client_index		Client index. | 
|  | 10 | + * @param Doll				Is prop_ragdoll? | 
|  | 11 | + * @return					Ture on success. False on failure. | 
|  | 12 | + */ | 
|  | 13 | +native bool:Build_RegisterEntityOwner(entity_index, client_index, bool:Doll = false); | 
|  | 14 | + | 
|  | 15 | +/** | 
|  | 16 | + * Get an entity owner. | 
|  | 17 | + *  | 
|  | 18 | + * @param entity_index		Entity index. | 
|  | 19 | + * @return					-1 on failure. Any other value indicates a Entity index owner. | 
|  | 20 | + */ | 
|  | 21 | +native Build_ReturnEntityOwner(entity_index); | 
|  | 22 | + | 
|  | 23 | +/** | 
|  | 24 | + * Set client props limit. | 
|  | 25 | + * | 
|  | 26 | + * @param client_index		Client index. | 
|  | 27 | + * @param amount			Amount to increase or decrease. If amount = 0 then set limit to 0. | 
|  | 28 | + * @param Doll				Is prop_ragdoll? | 
|  | 29 | + * @noreturn | 
|  | 30 | + */ | 
|  | 31 | +native Build_SetLimit(client_index, amount, bool:Doll = false); | 
|  | 32 | + | 
|  | 33 | +/** | 
|  | 34 | + * Check client can use BuildMod. | 
|  | 35 | + *  | 
|  | 36 | + * @param client_index		Client index. | 
|  | 37 | + * @return					True on success. False on failure. | 
|  | 38 | + */ | 
|  | 39 | +native bool:Build_AllowToUse(client_index); | 
|  | 40 | + | 
|  | 41 | +/** | 
|  | 42 | + * Check client can use Fly. | 
|  | 43 | + *  | 
|  | 44 | + * @param client_index		Client index. | 
|  | 45 | + * @return					True on success. False on failure. | 
|  | 46 | + */ | 
|  | 47 | +native bool:Build_AllowFly(client_index); | 
|  | 48 | + | 
|  | 49 | +/** | 
|  | 50 | + * Get client admin. | 
|  | 51 | + *  | 
|  | 52 | + * @param client_index		Client index. | 
|  | 53 | + * @param Level2			Level 2 access. | 
|  | 54 | + * @return					True on admin. False on not. | 
|  | 55 | + */ | 
|  | 56 | +native bool:Build_IsAdmin(client_index, bool:Level2 = false); | 
|  | 57 | + | 
|  | 58 | +/** | 
|  | 59 | + * Get client aim entity. | 
|  | 60 | + *  | 
|  | 61 | + * @param client_index		Client index. | 
|  | 62 | + * @param show_message		Show a message when entity invalid? | 
|  | 63 | + * @param included_clients	Allow native to getting clients? | 
|  | 64 | + * @return					-1 on failure. Any other value indicates a Entity index. | 
|  | 65 | + */ | 
|  | 66 | +native Build_ClientAimEntity(client_index, bool:show_message = true, bool:included_clients = false); | 
|  | 67 | + | 
|  | 68 | +/** | 
|  | 69 | + * Get an entity of owner is equal client. | 
|  | 70 | + *  | 
|  | 71 | + * @param client_index		Client index. | 
|  | 72 | + * @param entity_index		Entity index. | 
|  | 73 | + * @param bIngoreCvar		Ingore 'bm_nonowner' cvar? | 
|  | 74 | + * @return					True on owner. False on not. | 
|  | 75 | + */ | 
|  | 76 | +native bool:Build_IsEntityOwner(client_index, entity_index, bool:bIngoreCvar = false); | 
|  | 77 | + | 
|  | 78 | +/** | 
|  | 79 | + * Logging commands and args. | 
|  | 80 | + *  | 
|  | 81 | + * @param client_index		Client index. | 
|  | 82 | + * @param command			Command to log. | 
|  | 83 | + * @param args				Args to log. | 
|  | 84 | + * @noreturn | 
|  | 85 | + */ | 
|  | 86 | +native Build_Logging(client_index, const String:command[], const String:args[]); | 
|  | 87 | + | 
|  | 88 | +/** | 
|  | 89 | + * Prints a message with the BuildMod tag. | 
|  | 90 | + * | 
|  | 91 | + * @param client_index		Client index. | 
|  | 92 | + * @param format			Formatting rules. | 
|  | 93 | + * @param ...				Variable number of format parameters. | 
|  | 94 | + * @noreturn | 
|  | 95 | + */ | 
|  | 96 | +native Build_PrintToChat(client_index, const String:format[], any:...); | 
|  | 97 | + | 
|  | 98 | +/** | 
|  | 99 | + * Prints a message to all clients with the BuildMod tag. | 
|  | 100 | + * | 
|  | 101 | + * @param format			Formatting rules. | 
|  | 102 | + * @param ...				Variable number of format parameters. | 
|  | 103 | + * @noreturn | 
|  | 104 | + */ | 
|  | 105 | +native Build_PrintToAll(const String:format[], any:...); | 
|  | 106 | + | 
|  | 107 | +/** | 
|  | 108 | + * Add client to blacklist. | 
|  | 109 | + * | 
|  | 110 | + * @param client_index		Client index. | 
|  | 111 | + * @return					True on success. False on failure. | 
|  | 112 | + */ | 
|  | 113 | +native Build_AddBlacklist(client_index); | 
|  | 114 | + | 
|  | 115 | +/** | 
|  | 116 | + * Remove client from blacklist. | 
|  | 117 | + * | 
|  | 118 | + * @param client_index		Client index. | 
|  | 119 | + * @return					True on success. False on failure. | 
|  | 120 | + */ | 
|  | 121 | +native Build_RemoveBlacklist(client_index); | 
|  | 122 | + | 
|  | 123 | +/** | 
|  | 124 | + * Get client is blacklisted. | 
|  | 125 | + * | 
|  | 126 | + * @param client_index		Client index. | 
|  | 127 | + * @return					True on blacklisted. False on not. | 
|  | 128 | + */ | 
|  | 129 | +native bool:Build_IsBlacklisted(client_index); | 
|  | 130 | + | 
|  | 131 | +/** | 
|  | 132 | + * Check is target client valid. | 
|  | 133 | + * | 
|  | 134 | + * @param client_index		Client index. | 
|  | 135 | + * @param target_index		Target index. | 
|  | 136 | + * @param Alive				Check is target alive. | 
|  | 137 | + * @param ReplyTarget		Alive result reply target client or self. | 
|  | 138 | + * @return					True if target valid. Otherwise false. | 
|  | 139 | + */ | 
|  | 140 | +native bool:Build_IsClientValid(client_index, target_index, bool:Alive = false, bool:ReplyTarget = false); | 
0 commit comments