Raised This Month: $ Target: $400
 0% 

Calling Functions from other plugins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Damocles
Member
Join Date: Jan 2005
Old 02-03-2005 , 08:12  
Reply With Quote #3

Sorry PM, had a look now

The reason i asked was because i know that Yomama did something like this with his amx_bans plugin and the ATAC plugin:

Quote:

Change this...

Code:
if( atac_banvia == 2 ) // If LAN or IP ban via IP     server_cmd("addip %i %s;writeip;kick #%d", atac_bantime, kIP, userid) else     server_cmd("banid %i #%d kick;writeid", atac_bantime, userid)

to this...

Code:
if( atac_banvia == 2 ) // If LAN or IP ban via IP     server_cmd("addip %i %s;writeip;kick #%d", atac_bantime, kIP, userid) else     server_cmd("amx_ban %i %s Team kill violation", atac_bantime, kAuthid)
There's that server_cmd("amx_ban ......) line in there which looks like it directly calls the amx_ban function in the amx_bans plugin, thats why i thought i could do it like i had up the top. Is this not a good way to do it ??
Damocles 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 19:26.


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