06.01.2011, 09:47
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.
So, this is probably WAY off track, but please help me get my train back ON track, (lol?) Thank you in acvance.
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;
}