Robisz paczki, a tak prostego kodu nie wyklepiesz ? Sam już nic nie pamiętam z amxx, ale masz ehh
#include < amxmodx >
#define ILE 10
new gVotes = 0;
new bool: pVote[ 33 ];
public plugin_init() {
register_plugin( "I tak to zmienisz...", "1.0", "To tym bardziej..." );
register_clcmd( "say /test", "test" );
}
public client_putinserver( id ) pVote[ id ] = false;
public test( id ) {
if( pVote[ id ] )
return PLUGIN_CONTINUE;
if( ++gVotes >= ILE ) {
// O pacz jest ilosc glosow
// Tutaj zdalo by sie wyzerowac gVotes i pVote kazdego gracza, have fun
} else {
set_hudmessage( 255, 0, 0, -1.0, 0.30, 0, 6.0, 7.0 );
show_hudmessage( id, "Aby uaktywnić test, jeszcze (%d) graczy musi wpisać /test w say", ILE - gVotes );
}
pVote[ id ] = true;
return PLUGIN_CONTINUE;
}