Raised This Month: $ Target: $400
 0% 

[help] letting 2 plugins interact with each other


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-01-2012 , 10:03   [help] letting 2 plugins interact with each other
Reply With Quote #1

I just made this include, could anyone tell me if this is correct for what i want to do?


the point of the include is to remember when a first plugin has done something that needs to enable an action inside another plugin. So that they can work/interact on each other, will this work?


PHP Code:
 
#if defined _jbrebel_included
#endinput
#endif
#define _jbrebel_included
 
/**
* Returns whether a player is a rebel or not.
*
* @param id Player index.
* @return True if he is, false otherwise.
*/
native is_user_rebel(id)
/**
* Set's a players status to rebel.
*
* @param id Player index.
* @return True on success, false otherwise.
*/
native set_user_rebel(id)
/**
* Removes a player's rebelstatus.
*
* @param id Player index.
* @return True on success, false otherwise.
*/
native remove_user_rebel(id

Last edited by striker07; 05-01-2012 at 10:03.
striker07 is offline
 


Thread Tools
Display Modes

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 07:47.


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