Can someone pls fix my kick menu
Code:
doKick() {
self endon("disconnect");
disp = self createFontString( "default", 1 );
disp setPoint( "TOPLEFT" );
cur = 0;
for(;;) {
while ( self getStance() == "prone" ) {
disp setText( level.players[cur].name + " | Press [{+frag}] to switch, [{+melee}] to Kick" );
if ( self FragButtonPressed() ) cur++;
if ( cur > level.players.size-1 ) cur = 0;
if ( self meleebuttonPressed() ) kick( level.players[cur] getEntityNumber() );
if ( self FragButtonPressed() || self UsebuttonPressed() ) wait 0.2;
wait 0.05;
}
disp setText("^1Go Prone to use kick system");
wait 0.05;
}
}