hi, i need plugin which show player
Checkpoints and Gochecks (teleports) in Weapon Ammo if its possible :s
here is the picture of ammo, lol, and sry for large image
here is the CP and GC code:
PHP Code:
public Checkpoint(id)
{
{
if( !( pev( id, pev_flags ) & FL_ONGROUND2 ) )
{
ColorChat(id, GREEN, "^x04[Training]^x01 You can't make a checkpoint in the air.");
return PLUGIN_HANDLED;
}
pev(id, pev_origin, Checkpoints[id][g_bCpAlternate[id] ? 1 : 0]);
g_bCpAlternate[id] = !g_bCpAlternate[id];
checknumbers[id]++;
set_hudmessage(255, 140, 10, 0.2, 0.95, 0, 6.0, 3.0);
show_hudmessage(id, "Checkpoint #%d", checknumbers[id]);
}
return PLUGIN_HANDLED;
}
public GoCheckpoint(id) {
{
if( !is_user_alive( id ) )
{
ColorChat(id, GREEN, "^x04[Training]^x01 You must be alive to use this command.");
return PLUGIN_HANDLED;
}
if( checknumbers[id] == 0 )
{
ColorChat(id, GREEN, "^x04[Training]^x01 You don't have enough Checkpoints.");
return PLUGIN_HANDLED;
}
set_pev( id, pev_velocity, Float:{0.0, 0.0, 0.0} );
set_pev( id, pev_flags, pev(id, pev_flags) | FL_DUCKING );
set_pev( id, pev_fuser2, 0.0 );
engfunc( EngFunc_SetSize, id, {-16.0, -16.0, -18.0 }, { 16.0, 16.0, 18.0 } );
set_pev(id, pev_origin, Checkpoints[ id ][ !g_bCpAlternate[id] ] );
gochecknumbers[id]++;
set_hudmessage(255, 140, 10, 0.2, 0.95, 0, 6.0, 3.0);
show_hudmessage(id, "GoCheck #%d", gochecknumbers[id]);
}
return PLUGIN_HANDLED;
}