Raised This Month: $ Target: $400
 0% 

[help] letting 2 plugins interact with each other


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-28-2012 , 11:16   Re: [help] letting 2 plugins interact with each other
Reply With Quote #4

No, I added this now but i need some help, this is the first time I attempt something like this:
PHP Code:
public plugin_natives ()
{
 
register_native("is_user_rebel""_is_user_rebel");
 
register_native("set_user_rebel""_set_user_rebel");
 
register_native("remove_user_rebel""_remove_user_rebel");
}
public 
_is_user_rebel(id)
{
 if(
is_user_rebel(id) )
  return 
1;
 else
  return 
0;
}
public 
_set_user_rebel(id)
{
 if(!
is_user_rebel(id) )
 {
  
//No clue what to put here, just some bold guesses
  
return 1;
 }
}
public 
_remove_user_rebel(id)
{
 
// need some help

When this piece of code is finished then i should put that in both plugin that use this include right?
what do you mean with the library?
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]

Last edited by striker07; 05-28-2012 at 11:19.
striker07 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 07:47.


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