03.06.2010, 19:16
Is there a way for disabling the kill cmd?
i can't find it in gamemode and filterscripts
i can't find it in gamemode and filterscripts
Originally Posted by XoX
Is there a way for disabling the kill cmd?
i can't find it in gamemode and filterscripts |
public OnPlayerCommandText(playerid, cmdtext[])
}
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0);
return 1;
}
Originally Posted by MaxDSL
public OnPlayerCommandText(playerid, cmdtext[])
} if (strcmp("/kill", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid,0); return 1; } |
if(!strcmp(cmdtext,"/kill",true)) { SetPlayerHealth(playerid,0.0); return 1;}
Originally Posted by MaxDSL
If you want to know how to make a kill command just look below:
pawn Код:
|
Originally Posted by _Ч§hмf†ҐЧ™_
Код:
if(!strcmp(cmdtext,"/kill",true)) { SetPlayerHealth(playerid,0.0); return 1;} Faster. |
dcmd_kill(playerid,params[])
{
#pragma unused params
return SetPlayerHealth(playerid,0.0);
}
Originally Posted by Woet
Quote:
Quote:
|