Admin command problem
#1

Hey, again!
So, I know something is wrong with this, even tho the compile was clean, cuz when i started the local host, it said file or function not found.. After I added this cmd, so help would be great.

pawn Код:
COMMAND:killplayer(playerid, params[])
    {
    new id;
    if(IsPlayerAdmin(playerid))
        {
        if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /killplayer <ID>");
        SetPlayerHealth(id, -1);
        SendClientMessage(id, COLOR_RED, "You have been killed by an Admin!");
        SendClientMessage(playerid, COLOR_RED, "Player killed!");
        }else{
        SendClientMessage(playerid, COLOR_RED, "You're not an admin!");
        }
    return 1;
    }
So, this is probably WAY off track, but please help me get my train back ON track, (lol?) Thank you in acvance.
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: 1 Guest(s)