PHP Code:
public PlayerPreThink(id) {
if(!is_user_alive(id))
return PLUGIN_CONTINUE;
if( is_valid_ent( g_iBall ) ) {
static iOwner; iOwner = pev( g_iBall , pev_iuser1 );
if( iOwner != id )
if( get_user_maxspeed(id) != 1.0 )
set_user_maxspeed(id, 230.0)
}
return PLUGIN_HANDLED;
}
PHP Code:
public CurWeapon(id) {
if(!is_user_alive(id))
return PLUGIN_CONTINUE;
if( is_valid_ent(g_iBall ) ) {
static iOwner; iOwner = pev( g_iBall , pev_iuser1 );
if( get_user_maxspeed(id) != 1.0 )
if( iOwner == id )
set_user_maxspeed(id, 200)
}
return PLUGIN_HANDLED;
}
PHP Code:
KickBall( id ) {
if( get_user_maxspeed(id) != 1.0 )
set_user_maxspeed(id, 230.0)
static Float:vOrigin[ 3 ];
entity_get_vector( g_iBall , EV_VEC_origin, vOrigin );
vOrigin[2] += 35;
PHP Code:
public FwdTouchPlayer( Ball, id ) {
if( is_user_bot( id ) )
return PLUGIN_CONTINUE;
static iOwner; iOwner = pev( Ball, pev_iuser1 );
if( iOwner == 0 ) {
entity_set_int( Ball, EV_INT_iuser1, id );
beam(10)
emit_sound( Ball, CHAN_ITEM, gotball, 1.0, ATTN_NORM, 0, PITCH_NORM);
set_hudmessage(255, 20, 20, -1.0, 0.4, 1, 1.0, 1.5, 0.1, 0.1, 2)
show_hudmessage(id,"YOU HAVE THE BALL")
if( get_user_maxspeed(id) != 1.0 )
set_user_maxspeed(id, 200.0)
}
return PLUGIN_CONTINUE;
}
Right? or bad I need to add this all
or can u do that for me connor?
__________________