Raised This Month: $ Target: $400
 0% 

[HELP] Plugin inside other plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Veggetta
Member
Join Date: Mar 2008
Location: Portugal
Old 07-05-2012 , 13:54   [HELP] Plugin inside other plugin
Reply With Quote #1

I'm recoding my plugin.
And i want to use a plugin inside the main plugin.

Every round i want to random push a plugin to an "ID"
1.amxx - to player1
2.amxx - to player2
etc...

I'm using BOOL's to activate:
I want something like:

PHP Code:
new bool:LOL[33];
new 
bool:LFMAO[33];

public 
plugin_init()
{
         
register_plugin(blablabla);
         
RegisterHam(Ham_Spawn"player""round"1);
}

public 
round(id)
{
    
LOL[id]=false;
    
LFMAO[id]=false;

    
round2(id);
}

public 
round2(id)
{
new 
rand random_num(1,10);
switch(
rand)
{
      case 
1:
      {
             
LOL[id] = true;
             
1.amxx;
      }
      case 
2:
      {
             
LFMAO[id] = true;
             
2.amxx;
      }
}

its possible ? Starting and pausing the plugin to each ID with bool?

Last edited by Veggetta; 07-05-2012 at 14:11.
Veggetta is offline
Old 07-05-2012, 16:27
Veggetta
This message has been deleted by YamiKaitou. Reason: wait 14 days until you bump
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-05-2012 , 19:18   Re: [HELP] Plugin inside other plugin
Reply With Quote #2

You need to explain exactly what you want (including links to the plugins you are trying to use). Also, each case you have there only has a 10 percent chance of getting executed, FYI.
__________________

Last edited by fysiks; 07-05-2012 at 19:18.
fysiks 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 15:20.


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