Admin command problem
#3

Quote:
Originally Posted by Clive
Посмотреть сообщение
pawn Код:
COMMAND:killplayer(playerid, params[])
{
    if(IsPlayerAdmin(playerid)) SendClientMessage(playerid, COLOR_RED, "You're not an admin!");
    else
    {
        new ID;
        if(sscanf(params, "u", ID)) SendClientMessage(playerid, COLOR_RED, "USAGE: /killplayer <ID>");
        else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
        else
        {
            SendClientMessage(ID, COLOR_RED, "You have been killed by an Admin!");
            SetPlayerHealth(ID, 0);
            SendClientMessage(playerid, COLOR_RED, "Player killed!");
        }
    }
    return 1;
}
Still says "File or Function not found" but when I remove the one you made, if doesnt say "File or function not found" :S Any ideas ?
Reply


Messages In This Thread
[Solved]Admin command Problem - by rubygta - 06.01.2011, 09:47
Re: Admin command problem - by HyperZ - 06.01.2011, 09:55
Re: Admin command problem - by rubygta - 06.01.2011, 10:02
Re: Admin command problem - by HyperZ - 06.01.2011, 10:02
Re: Admin command problem - by rubygta - 06.01.2011, 10:04
Re: Admin command problem - by HyperZ - 06.01.2011, 10:07
Re: Admin command problem - by Sascha - 06.01.2011, 10:10

Forum Jump:


Users browsing this thread: 2 Guest(s)