Raised This Month: $ Target: $400
 0% 

can be linked with hamspawn putinserver??


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
niko1921
Member
Join Date: Sep 2014
Old 11-15-2014 , 19:08   can be linked with hamspawn putinserver??
Reply With Quote #1

can be linked with hamspawn putinserver??

This would not want to make the plugin:

I correct errors that do not know how to adapt to ham_pawn public putinserver unopened another public or whatever works in one .. because if you would follow sepearo working separately ...



PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "auto restart round knife"
#define VERSION "test1"
#define AUTHOR "KramerEditor"


new g_players
new boolg_usado // it acts just 1 time ..



public plugin_init () {
         
register_plugin ("PLUGIN""VERSION""AUTHOR")
         
RegisterHam (Ham_Spawn"player""ham_spawn"1);
        
g_players get_maxplayers ()
}
        public 
client_putinserver (id// I want no change .. I just want to occur when connecting to the server .. ..
{
        if (! 
g_usado// act 1 time - HOME
        
if (get_playersnum ()> = 2)
         {
         
server_cmd ("sv_restartround 1"// restart the round to detect more than 2 players ..
}
ham_spawn () // it acts like one once you pass the restartround and it acts no more .. or is that long after the restartround weapons. and never                  until change the map .. ie after I draw weapons that can grab back the weapons .. (only 1 time as aga in the first spawn)
{
        
strip_user_weapons (id// We take out the weapons ...
        
give_item (id"weapon_knife"// You give the knife
         
}
         
g_usado true // act 1 time up here - (vedadero)
         
}
         return 
PLUGIN_HANDLED

tranks!!

Last edited by niko1921; 11-15-2014 at 19:30.
niko1921 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 17:31.


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