Quote:
Originally Posted by Kindred
pawn Код:
dcmd_kill(playerid,params[]) { if(GetPlayerWantedLevel(playerid) >= 1) return SendClientMessage(playerid, -1, "You are wanted, you cannot kill yourself!"); SetPlayerHealth(playerid, 0); SendClientMessage(playerid, -1, "You killed yourself!"); return 1; }
Here. This prevents people with a wanted level to /kill.
Out of three of these posts, this is the most efficient way to do this. It has less lines and looks better.
|
Sure it's probably the most 'efficient', but for new-er scripters, mine would most likely be the easiest to read and comprehend.