Raised This Month: $ Target: $400
 0% 

Request: Can You Fix My Warrnings?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Giass
Member
Join Date: Aug 2011
Location: {Israel}
Old 12-25-2011 , 05:48   Request: Can You Fix My Warrnings?
Reply With Quote #1

SMA:

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

#define PLUGIN "First Writes"
#define VERSION "2.0"
#define AUTHOR "AFarSeX"

new Started false;

new const 
MinNum 0
new const MaxNum 9999

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR
)
      
register_clcmd("amx_firstwrites""first_writes")
      
register_clcmd("amx_roshem""first_writes")
      
register_clcmd("say /roshem""first_writes")
    
register_clcmd("say /fw""first_writes")
    
register_clcmd("say""FirstPerson")
}

public 
plugin_precache()
{
    
precache_sound("fvox/one.wav")
    
precache_sound("fvox/two.wav")
    
precache_sound("fvox/three.wav")
    
precache_sound("fvox/four.wav")
    
precache_sound("fvox/five.wav")
}

public 
cmdTransfer(id) {
cs_set_user_team(idCS_TEAM_CT)
spawn(id)
return 
PLUGIN_HANDLED;  
}

public 
first_writes(id)
{
    if(
Started)
    {
        
ColorChat(idRED"^x04You Need To Wait Untill First Writes Will Over")

        return 
PLUGIN_HANDLED;
    }
    
    else if(
is_user_admin(id))
    {
             
set_hudmessage 2001000, -1.00.2501.05.00.10.2);
             
show_hudmessage(0"First Writes Start In 5 Sec")
        
client_cmd(0"spk ^"fvox/five.wav^"")
        
        
set_task(1.0"four")
    }
    return 
PLUGIN_HANDLED;
}

public 
four()
{
    
set_hudmessage 2001000, -1.00.2501.05.00.10.2);
    
show_hudmessage(0"First Writes Start In 4 Sec")
    
client_cmd(0"spk ^"fvox/four.wav^"")
    
    
set_task(1.0"three")
}

public 
three()
{
    
set_hudmessage 2001000, -1.00.2501.05.00.10.2);
    
show_hudmessage(0"First Writes Start In 3 Sec")
    
client_cmd(0"spk ^"fvox/three.wav^"")
    
    
set_task(1.0"two")
}

public 
two()
{
    
set_hudmessage 2001000, -1.00.2501.05.00.10.2);
    
show_hudmessage(0"First Writes Start In 2 Sec")
    
client_cmd(0"spk ^"fvox/two.wav^"")
    
    
set_task(1.0"one")
}

public 
one()
{
      
set_hudmessage 2001000, -1.00.2501.05.00.10.2);
    
show_hudmessage(0"First Writes Start In 1 Sec")
    
client_cmd(0"spk ^"fvox/one.wav^"")
    
    
set_task(1.0"StartFirstWrites")
}

public 
StartFirstWrites()
{
    
Started random_num(MinNumMaxNum);
    
set_hudmessage(02250, -1.0, -1.004.54.5)
    
show_hudmessage(0"The First Write %d Move To Ct Team"Started)
    return 
PLUGIN_HANDLED;
}

public 
FirstPerson(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_T && Started)
    {
        new 
Write[32], Winner[32]
        
read_argv(1Writecharsmax(Write))
        
num_to_str(StartedWinnercharsmax(Winner))
        if(
equal(WriteWinner))
        {
        new 
szWinner[32]
          
get_user_name(idszWinnercharsmax(szWinner))
          
set_hudmessage(02550, -1.00.4025.08.00.00.010)
          
show_hudmessage(0"%s Won And Moved To Ct Team"szWinner)
            
cmdTransfer(id)
          
Started false
        
}
    }
    else if(!
Started)
    {
        new 
Write[32], Lose[32]
        
read_argv(1Writecharsmax(Write))
        
num_to_str(StartedLosecharsmax(Lose))
        if(
equal(WriteLose))
        {
            
cs_set_user_team(idCS_TEAM_CT)
          
Started false
        
}
    }

Please Help!
__________________
All you need is carb
Giass 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 11:52.


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