Raised This Month: $ Target: $400
 0% 

few things


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 09-02-2012 , 15:30   few things
Reply With Quote #1

1.how can i remove game command?

2.i want to build a rambo mod and i started but the mod dont work why is it?could some one fix for me?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta_util>
#include <hamsandwich>
#include <engine>

#define PLUGIN "Rambo Mod"
#define VERSION "1.0"
#define AUTHOR "MaRs"

#define _random(%1) random_num(0, %1 - 1)

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("RoundEnd"2"1=Round_End")
    
    
register_clcmd("say /rambo""CmdRambo");
}
    
public 
client_putinserver(id)
{
    
cs_set_user_team(idCS_TEAM_T)
}

public 
RoundEnd()
{
   for (new 
idid <= 32id++){
   
cs_set_user_team(idCS_TEAM_T)
   }
}
public 
CmdRambo() set_task(1.0"RamboMod")
public 
RamboMod(id)
{
        static 
randomplayer
        
        
static players[32], numiid
        get_players
(playersnum"a")
        
        
randomplayer players[_random(num)]
        
        for(
0numi++)
        {
            
id players[i]
            if(
id == randomplayer)
            {
                new 
name[32];
                
get_user_name(idname31)
                
cs_set_user_team(id,CS_TEAM_CT); 
                
ExecuteHam(Ham_CS_RoundRespawnid
                
set_hudmessage(random_num(1,255), random_num(1,255), random_num(1,255), -1.00.2626.010.00.251.5)
                
show_hudmessage(0"%s Is Rambo Kill Hemm!!!")
                
set_task(1.0"ActionRandomDay"id)
                
set_task(0.9"RamboModel"id)
            }
        }
}
public 
RamboSpawn(idExecuteHamB(Ham_CS_RoundRespawnid)
public 
RamboModel(id)
{
   
// cs_set_user_model(id, "rambo_player")
    
fm_give_item(id,"weapon_m249")
    
    
cs_set_user_bpammo(idCSW_M2499999 

dont look at the includes i just puted them also it was on round start the rambo mod and i changed it to command to check

Last edited by daniel46; 09-02-2012 at 15:41.
daniel46 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 08:14.


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