Raised This Month: $ Target: $400
 0% 

What is wrong here?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BlinkHardeR
Member
Join Date: Aug 2011
Location: Israel, Holon
Old 09-29-2011 , 10:27   What is wrong here?
Reply With Quote #1

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

new const PLUGIN[] = "[X]"
new const AUTHOR[] = "eMDX;3"
new const VERSION[] = "0.0.1"


new td_camtimer;
new 
pArmor get_user_armor;
new 
pHealth get_user_health;
new 
pBullets get_user_ammo;
new 
pHit get_user_attacker;

        public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /cam""camera"ADMIN_BAN)
    
register_clcmd("say /status""status")
    
register_clcmd("say /gurilla""guriilaCMD")
    
td_camtimer register_cvar("td_cam""50.0"ADMIN_BAN)
}
    public 
camera(id)
{
    if(
is_user_alive(id) && is_user_admin(id))
    {
        
set_view(idCAMERA_3RDPERSON)
        
ColorChat(id"You have 3RD Camera activated for %s seconds."td_camtimer)
        
set_task(50.0"EndCamera"id)
    }
}
    public 
EndCamera(id)
{
    if(
is_user_alive(id))
    {
        
set_view(idCAMERA_NONE)
        
ColorChat(id"3RD Camera is now disabled!")
    }
}  
    public 
status(id)
{
    
ColorChat(id"You'r Health Points: %s"pHealth)
    
ColorChat(id"You'r Armor: %s"pArmor)
    
ColorChat(id"You'r Ammo: %s"pBullets)
    
ColorChat(id"You'r Last Attacker: %s"pHit)
}
    public 
gurillaCMD(id)
    {
        
cs_set_user_model(id"gurilla")
    }
    
stock ColorChat(const id, const string[], {FloatSqlResul,_}:...) {
    new 
msg[191], players[32], count 1
    
    
static len
    len 
formatex(msgcharsmax(msg), "^x04[^x03%s^x04]^x01 "PLUGIN)
    
vformat(msg[len], charsmax(msg) - lenstring3)

    if(
id)
        
players[0] = id
    
else
        
get_players(players,count,"ch")
    
    for (new 
0counti++) {
        if(
is_user_connected(players[i]))
        {
            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"),_players[i])
            
write_byte(players[i])
            
write_string(msg)
            
message_end()
        }
    }

what i did worng here?

(yes i know i toke the CAM from other post... i am trying to do something...)

this is server fail:

[ 21] unknown unknown unknown [X].amx bad load
BlinkHardeR is offline
Send a message via Skype™ to BlinkHardeR
 



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 19:38.


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