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 ?