SA-MP Forums Archive
Again me - 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: Again me (/showthread.php?tid=189626)



Again me - sleepysnowflake - 12.11.2010

Hey guys again me

listen why on my server /killdsadasdasfas is the same like /kill

Can you help me ? how to make like /kill a invalid command :P


Re: Again me - Calgon - 12.11.2010

Look through your script for the command "/kill" or "/killdsadasdasfas" and remove them from your script (from the part where it says 'if(strcmp(...)' to the final bracket in the clause of code.


Re: Again me - [MWR]Blood - 12.11.2010

just delete it D:


Re: Again me - sleepysnowflake - 12.11.2010

i didnt get it

i cant find answer to this question nowhere and i think ive posted this question wrong :

How to make /killdsadasas invalid or like if i have a command lets say /para ... /parasalsl does teh same thing as only /para does... it doesnt matter what i add after /para i get the same result


Re: Again me - sleepysnowflake - 12.11.2010

ehem, so ?


Re: Again me - Jacob_Venturas - 12.11.2010

If you're using something that is like zcmd or dcmd (whatever it's called), then just search for "kill." Check your filter scripts and any other add-ons you have.


Re: Again me - Vince - 12.11.2010

Probably you have something like this:
pawn Код:
if(!strcmp("/kill", cmdtext, true, 5))
{
    SetPlayerHealth(playerid, 0.0);
}
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.


Re: Again me - sleepysnowflake - 13.11.2010

FIXED, ty mates !!!


Re: Again me - sleepysnowflake - 13.11.2010

again, a new prob.

i have luxadmin and when i put my passa nd do REGISTER my console CRASHES ...


Re: Again me - Bessensap - 13.11.2010

meaning script = fail