Raised This Month: $ Target: $400
 0% 

Can one plugin call(exec) onother one in his functions ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mitev
Junior Member
Join Date: Feb 2010
Old 05-16-2010 , 13:20   Re: Can one plugin call(exec) onother one in his functions ?
Reply With Quote #1

so..
one cs server .. two plugins for admins

i use admin_amxbans ---> amx admins from amxbans system.
sms-admins.amxx --> another plugin from www.amxmodxbg.org
i am from bulgaria.

both plugins read info form mysql.
each plugin use different setinfo

admin_amxbans --> setinfo _pw
sms-admins ----> setinfo _smsadmins

the problem is that , sms-admins plugin is writen with one "error"
------------------------------------
1. player connect to the server..
first admin_amxbans is started and he begin his work

first he remove all user flags form client, after that check in his database if the client hass access tho the server and grant or reject him

kick, or allow.

so.. on every connected user , their flag are removed ..


2. sms-admins plugin read from his database and give flags to the player which authenitacate them self correctly..

but.
the problem comes when sms-admin try to connect. The reserve slot is not working for that admin.

cause his flags are already removed.

and i want to exec sms-admins right after the function where user flags are removed ..

Quote:
Quote:
accessUser(id, name[] = "")
{
remove_user_flags(id)

new userip[32], userauthid[32], password[32], passfield[32], username[32]

get_user_ip(id, userip, 31, 1)
get_user_authid(id, userauthid, 31)
Quote:
accessUser(id, name[] = "")
{
remove_user_flags(id)

---> here to call(run) another plugin

new userip[32], userauthid[32], password[32], passfield[32], username[32]

get_user_ip(id, userip, 31, 1)
get_user_authid(id, userauthid, 31)
am i little more clear now

Last edited by Mitev; 05-16-2010 at 13:48.
Mitev 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 03:39.


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