21.05.2011, 19:27
Hey guys,
Once again i messed up my script, and i dont know what i did wrong. I just added a simple command (akill), and then it was like poof bye bye admin script.. When i delete the akill command, it works 100%, and i dont get any problems![undecided](images/smilies/neutral.gif)
It is this command, there are no errors when i compile, just when i start up the server; it doesnt print the line i putted on OnFilterScriptInit (This is JUST when i HAVE the command in it, when i comment it; the line prints)
Anyone could check it?
Thanks
~Wesley
Once again i messed up my script, and i dont know what i did wrong. I just added a simple command (akill), and then it was like poof bye bye admin script.. When i delete the akill command, it works 100%, and i dont get any problems
![undecided](images/smilies/neutral.gif)
pawn Код:
dcmd_akill(playerid, params[])
{
new Player2;
if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[AKILL])
{
new string[128];
format(string, sizeof(string), "You must be a level %d administrator to use that command!", gCommands[AKILL]);
SendClientMessage(playerid, COLOR_ORANGE, string);
}
else if (sscanf(params, "u", Player2)) return SendClientMessage(playerid, COLOR_ORANGE, "Usage: /akill [playerid]");
else if (Player2 == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_ORANGE, "Player not Connected");
else {
SendClientMessage(Player2, COLOR_RED, "You have been killed by an admin");
SetPlayerHealth(Player2, 0);
}
return 0;
}
Anyone could check it?
Thanks
~Wesley