[HELP] /killall
#2

Quote:
Originally Posted by Larsey123IsMe
Посмотреть сообщение
When i type "/killall" it kills all players and it sais "SERVER: Unknown Command"

how to remove the "SERVER: Unknown Command" when i type "/killall"

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/killall", cmdtext, true, 10) == 0)
    {
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            SetPlayerHealth(i,0);
        }
     }
    return 0;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/killall", cmdtext, true, 10) == 0)
    {
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            return SetPlayerHealth(i,0);
        }
     }
    return 0;
}
Return the value
Reply


Messages In This Thread
[HELP] /killall - by Larsey123IsMe - 13.12.2010, 04:22
Re: [HELP] /killall - by admantis - 13.12.2010, 04:26
Re: [HELP] /killall - by Kitten - 13.12.2010, 04:26
Re: [HELP] /killall - by Larsey123IsMe - 13.12.2010, 04:28

Forum Jump:


Users browsing this thread: 1 Guest(s)