Raised This Month: $ Target: $400
 0% 

Help if FD random


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shoki123
Senior Member
Join Date: Apr 2011
Old 08-12-2011 , 03:59   Help if FD random
Reply With Quote #1

HI I have fd random if ct say /fd its choes freeday to 1 teror.
buy this not work if ct say this ( /fd) It chooses itself
pliz fix this
PHP Code:
 
#include <amxmodx>
#include <fun>
#include <cstrike>

public plugin_init()
    
register_clcmd("say /fd""CmdFd");
    
public 
CmdFd(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_CT)
    {
        new 
iPlayers[32], iNum;
        
get_players(iPlayersiNum"ae""TERRORIST");
        new 
adname[33]
        
get_user_name(idadname23)
        
set_hudmessage255 , -1.0 0.28 1.1 1.1 0.01 0.01 );
        
show_hudmessage(0"%s You have FreeDay This Round Enjoy!"adname)
    
        
set_user_rendering(iPlayers[random(iNum)], kRenderFxGlowShell25500kRenderTransAlpha150);
    }

shoki123 is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 08-12-2011 , 05:44   Re: Help if FD random
Reply With Quote #2

PHP Code:
public CmdFd(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_CT)
    {
        new 
iPlayers[32], iNumiPlayer;
        
get_players(iPlayersiNum"ae""TERRORIST");
        
        if(!
iNum)
            return;
        
        
iPlayer iPlayers[random(iNum)];
        
        new 
adname[33]
        
get_user_name(iPlayeradname23)
        
set_hudmessage255 , -1.0 0.28 1.1 1.1 0.01 0.01 );
        
show_hudmessage(0"%s You have FreeDay This Round Enjoy!"adname)
    
        
set_user_rendering(iPlayerkRenderFxGlowShell25500kRenderTransAlpha150);
    }

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 03:20.


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