Raised This Month: $ Target: $400
 0% 

few things


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 09-04-2012 , 04:01   Re: few things
Reply With Quote #4

1. Not possible on client-side commands, but possible on server-side commands.

2. Try:
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");
    
    
RegisterHamHam_Spawn"player""PlayerSpawn");
}
public 
PlayerSpawn(id){
 if (! 
cs_get_user_team(id) == CS_TEAM_T)
  
cs_set_user_team(idCS_TEAM_T)
}
public 
RoundEnd()
{
   for (new 
idid <= 32id++){
   if (! 
cs_get_user_team(id) == CS_TEAM_T)
 
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)
{
 if (
is_user_connected(id) && is_user_alive(id)){
    
cs_set_user_model(id"rambo_player")
    
fm_give_item(id,"weapon_m249")
    
    
cs_set_user_bpammo(idCSW_M2499999 
   }

Sorry but i don't have time.
__________________
simanovich 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 08:14.


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