12.11.2010, 17:54
Probably you have something like this:
Notice the '5' in the if-statement. This will only compare the first 5 characters, hence /killfoobar is the same as /kill. Remove that 5 and the preceding comma and it should be fixed.
pawn Код:
if(!strcmp("/kill", cmdtext, true, 5))
{
SetPlayerHealth(playerid, 0.0);
}