[HELP] /killall
#1

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;
}
Reply
#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
#3

EDIT: Dammit-.- he was faster than me
Reply
#4

LoL, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)