Disabling /kill cmd in 0.3a?
#1

Is there a way for disabling the kill cmd?
i can't find it in gamemode and filterscripts
Reply
#2

It has to be, i dont think that this is a sa-mp command.
Reply
#3

Quote:
Originally Posted by XoX
Is there a way for disabling the kill cmd?
i can't find it in gamemode and filterscripts
A client side /kill command doesn't exist.
You probably have a filterscript or a gamemode where this command is stored in.
Do CTRL+F and type "kill" in it (whitout "") and just delete it.
Reply
#4

If you want to know how to make a kill command just look below:


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
}
    if (strcmp("/kill", cmdtext, true, 10) == 0)
{
    SetPlayerHealth(playerid,0);
    return 1;
}
Reply
#5

Quote:
Originally Posted by MaxDSL
public OnPlayerCommandText(playerid, cmdtext[])
}
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0);
return 1;
}
as said its not in gamemode and filterscripts
im wondering why it isn't working then
Reply
#6

Код:
if(!strcmp(cmdtext,"/kill",true)) {
SetPlayerHealth(playerid,0.0);
return 1;}
Faster.
Reply
#7

Quote:
Originally Posted by MaxDSL
If you want to know how to make a kill command just look below:


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
}
    if (strcmp("/kill", cmdtext, true, 10) == 0)
{
    SetPlayerHealth(playerid,0);
    return 1;
}
At least get your brackets right..

Quote:
Originally Posted by _Ч§hмf†ҐЧ™_
Код:
if(!strcmp(cmdtext,"/kill",true)) {
SetPlayerHealth(playerid,0.0);
return 1;}
How is that faster?

Faster.
Reply
#8

ok i've tested it... it must be in a filterscript
my suspection ladmin
someone knows if it is there?

EDIT:
(i dont want to post double)
Omg XD what a fail

pawn Код:
dcmd_kill(playerid,params[])
{
     #pragma unused params

     return SetPlayerHealth(playerid,0.0);
}

thanks for helping guys^^
Reply
#9

Quote:
Originally Posted by Woet
Quote:
Originally Posted by MaxDSL
If you want to know how to make a kill command just look below:


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
}
    if (strcmp("/kill", cmdtext, true, 10) == 0)
{
    SetPlayerHealth(playerid,0);
    return 1;
}
They are.. Just try and compile it works for me
At least get your brackets right..

Quote:
Originally Posted by _Ч§hмf†ҐЧ™_
Код:
if(!strcmp(cmdtext,"/kill",true)) {
SetPlayerHealth(playerid,0.0);
return 1;}
How is that faster?

Faster.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)