Raised This Month: $ Target: $400
 0% 

Error while making prefix plugin.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 05-25-2020 , 15:28   Re: Error while making prefix plugin.
Reply With Quote #4

You should call a task to check if is user connected. Try this:

Code:
#include <amxmodx> #include <chatmanager> const TASKCHECK = 324 static szInfo[5] public plugin_init() {     register_plugin("SetInfo Prefix", "1.2", "OciXCrom") } public client_putinserver(id) {     get_user_info(id, "vip", szInfo, charsmax(szInfo))       set_task( 10.0, "check_prefix", id + TASKCHECK) } public check_prefix(id) {     if(is_user_connected(id)     {         if( szInfo[0] == '1' )         {             cm_set_user_prefix(id, "[VIP]")         }     } }
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]

Last edited by Shadows Adi; 05-25-2020 at 15:42.
Shadows Adi is offline
 



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 17:10.


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