Disabling /kill - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Disabling /kill (
/showthread.php?tid=82905)
Disabling /kill -
zallomallo - 21.06.2009
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.
Re: Disabling /kill -
Grim_ - 21.06.2009
Just delete the command.
Re: Disabling /kill -
zallomallo - 21.06.2009
They still die.
Re: Disabling /kill -
Mr_C30 - 21.06.2009
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;
}
Re: Disabling /kill -
dice7 - 21.06.2009
Quote:
Originally Posted by zallomallo
They still die.
|
are you shore this is the only /kill cmd in your script ?
Re: Disabling /kill -
Grim_ - 21.06.2009
Just delete all code you have for /kill, then they won't die.
Re: Disabling /kill -
zallomallo - 21.06.2009
Yes, that is all I have for /kill, that code doesn't work
Re: Disabling /kill -
MadeMan - 21.06.2009
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.
Re: Disabling /kill -
zallomallo - 21.06.2009
TY, it was in one of the filterscripts.