Raised This Month: $ Target: $400
 0% 

help me plz


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dutchmeat
Senior Member
Join Date: Sep 2006
Old 02-02-2007 , 06:13   Re: help me plz
Reply With Quote #1

enable debugging on that plugin, we can't see which client_cmd is invalid.

edit you could try this:

Code:
#include <amxmodx> readSettings( ) {    new flags[12]    get_cvar_string( "amx_q3_mode" , flags ,11)    return read_flags( flags ) } public client_putinserver(id) {    if ( readSettings( ) & 8 ) {       set_task ( 2.0 , "enterMsg" , id )    }    return PLUGIN_CONTINUE } public enterMsg (id){ if (is_user_connected(id))   client_cmd( id , "spk q3/enter" ) } public client_disconnect(id) {   if ( readSettings( ) & 16)       client_cmd(0,"spk q3/leave")   return PLUGIN_CONTINUE } public newRound ( ) {    new roundtime = floatround( get_cvar_float("mp_roundtime") * 60.0 )    if ( roundtime == read_data(1) && readSettings( ) & 4 )           client_cmd(0,"spk q3/prepare")    return PLUGIN_CONTINUE } public makeDamage( victim ) {    new wpn, hitzone,  attacker = get_user_attacker(victim,wpn,hitzone)    if ( !attacker ) return    new teamA = get_user_team ( attacker )    new teamV = get_user_team ( victim )    if ( teamV == teamA ) {       if ( readSettings( ) & 2 )           client_cmd(attacker,"spk q3/ashot1")    }    else if ( readSettings( ) & 1 )       client_cmd(attacker,"spk q3/ashot2") }   public plugin_precache() {    precache_sound( "q3/ashot2.wav" )    precache_sound( "q3/ashot1.wav" )    precache_sound( "q3/prepare.wav" )    precache_sound( "q3/enter.wav" )    precache_sound( "q3/leave.wav" )    return PLUGIN_CONTINUE }   public plugin_init() {    register_plugin ("Quake like","1.2","DanRaZor")    register_event  ("Damage"      ,"makeDamage" ,"b","2!0","3=0","4!0")    register_event  ("RoundTime"   ,"newRound"   ,"bc")    register_cvar   ("amx_q3_mode" ,"abde" )    return PLUGIN_CONTINUE }
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.

Last edited by dutchmeat; 02-02-2007 at 06:20.
dutchmeat is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 02-02-2007 , 06:27   Re: help me plz
Reply With Quote #2

check is_user_connected(attacker)
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
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 00:40.


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