how can i make /kill like not for wanted player help
#5

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)