Help With some commands
#3

Untested, hope it works:
pawn Код:
if (strcmp("/kill", cmdtext, true, 4) == 0)
{
    if GetPlayerWantedLevel(playeird) >= 1
    {
        SendClientMessage(playerid, 0xFF4500AA,"You can kill yourself when you are wanted");
    }
    else
    {
        SetPlayerHealth(playerid, 0);
        SendClientMessage(playerid, 0xFF4500AA,"You have killed yourself using /kill");
    }
    return 1;
}
Reply


Messages In This Thread
Help With some commands - by Anup_Rao - 05.04.2012, 14:00
Re: Help With some commands - by blank. - 05.04.2012, 14:04
Re: Help With some commands - by Faisal_khan - 05.04.2012, 14:05
Re: Help With some commands - by Anup_Rao - 05.04.2012, 14:07
Re: Help With some commands - by blank. - 05.04.2012, 14:09
Re: Help With some commands - by Faisal_khan - 05.04.2012, 14:10
Re: Help With some commands - by Anup_Rao - 05.04.2012, 14:11
Re: Help With some commands - by .FuneraL. - 05.04.2012, 14:11
Re: Help With some commands - by blank. - 05.04.2012, 14:12
Re: Help With some commands - by .FuneraL. - 05.04.2012, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)