Raised This Month: $ Target: $400
 0% 

VIP Core v1.0 + Api


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
riste5
New Member
Join Date: Jun 2023
Old 06-24-2023 , 16:11   VIP Core v1.0 + Api
Reply With Quote #1

Required AMX Mod X version: >= 1.9

Description: This plugin adds api where you can integrate this vip system with your 3rd party plugins and put your vips inside "vipovi.ini" which is located in configs folder.

Available cvar commands:
amx_vip_log 1/0 = On/Off Log vip connections including failed logins and successfully (Logs player's nickname, steamid and IP address) This is useful if you wish to see if someone is using someone's privileges.

amx_vip_logfile default is "VipKonekcije.log"


Plugin API:

has_player_vip_privileges(index) // return true if player is vip or false
has_player_vip_flag(index, const flags[]) // Return true if player has specific flags or false

Available commands:

- Say /vips - see list of connected vip players
- VIP Players have VIP tag in scoreboard by default.

How do you add new vips:

Currently it is supported by nick and steamid only. Nick + password and Steamid + password (IP address not implemented yet)

Flags: abcdefghijklmnopqrstu

Account flags:
a = Disconnect player for invalid password
b = This is clan tag (Not yet implemented function)
c = This is steamid/wonid
d = This is IP
e = Password is not checked.

Example:

"Riste" "password" "abcdefghijklmnopqrstu" "a" // This will kick me if i don't have password in my setinfo _pw.
Attached Files
File Type: sma Get Plugin or Get Source (vip_core.sma - 128 views - 7.5 KB)
File Type: amxx vip_core.amxx (6.0 KB, 53 views)
File Type: inc vip_core.inc (292 Bytes, 47 views)

Last edited by riste5; 06-24-2023 at 16:12.
riste5 is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 06-25-2023 , 05:19   Re: VIP Core v1.0 + Api
Reply With Quote #2

it will give index out of bounds if there are 32 players on a server because your vars where you store things about player has a size of 32
lexzor is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode