Disabling /kill
#1

I am trying to disable /kill in all circumstances but nothing works. Here is my /kill command.

pawn Код:
if(!strcmp(cmd, "/kill")) {
  if(IsPlayerConnected(playerid)) {
  SendClientMessage(playerid, Red1, "Error: Unknown command! For available commands please use: /commands.");
  return 1;
  }
  SetPlayerHealth(playerid, 0.0);
  return 1;
}
They still die without any messages.
Reply
#2

Just delete the command.
Reply
#3

They still die.
Reply
#4

if(!strcmp(cmd, "/kill")) {
if(IsPlayerConnected(playerid)) {
SendClientMessage(playerid, Red1, "Error: Unknown command! For available commands please use: /commands.");
return 1;
}
else
{
SetPlayerHealth(playerid, 0.0);
}
return 1;
}
Reply
#5

Quote:
Originally Posted by zallomallo
They still die.
are you shore this is the only /kill cmd in your script ?
Reply
#6

Just delete all code you have for /kill, then they won't die.
Reply
#7

Yes, that is all I have for /kill, that code doesn't work
Reply
#8

If you are using Filterscripts then look inside them, because there is one Filterscript (actions.pwn I think, it comes with all the other server files) which has command /kill included.
Reply
#9

TY, it was in one of the filterscripts.
Reply


Forum Jump:


Users browsing this thread: