Larsey123IsMe
Unregistered
Quote:
Originally Posted by Backwardsman97
pawn Код:
if(listitem == 24) { SendClientMessageToAll(COLOR_ADMIN, "Server admin have killed evryone, Muwhaha"); for(new i = 0; i < MAX_PLAYERS; i++) { SetPlayerHealth(i, 0); } return 1; }
Several things wrong with it. First of all it spams everybody every time it kills someone. Secondly, there's no need to format the message. Thirdly, and the actual reason it doesn't work, is because you returned 1 inside the loop. You only return something inside a loop when you want to end it. The way you had it, the loop closed after the first iteration.  If it doesn't work now, it's because the listitem isn't 24.
|
Awww, Awesome man

Thanks