Help me making this command
#1

Well i need help like i have made a /kill command
but i want to make the command so that wanted people cant use it

if a wanted guy types /kill it should say u cant use this command bcz ur wanted


so if anyone can help me with this please help me
thank you in advance
Reply
#2

Here you have:

pawn Код:
if (strcmp("/kill", cmdtext, true, 5) == 0)
    {
        if(GetPlayerWantedLevel(playerid) > 0) return SendClientMessage(playerid,-1, "You can't use this command because you're wanted" );
        else
        SetPlayerHealth(playerid, 0.0);
        return 1;
    }
Reply
#3

^ faster
Reply
#4

Quote:
Originally Posted by Shabi RoxX
Посмотреть сообщение
Here you have:

pawn Код:
if (strcmp("/kill", cmdtext, true, 5) == 0)
    {
        if(GetPlayerWantedLevel(playerid) > 0) return SendClientMessage(playerid,-1, "You can't use this command because you're wanted" );
        else
        SetPlayerHealth(playerid, 0.0);
        return 1;
    }
thx for helpin me out
Reply
#5

Also if you wanted to like if you do /wanted then SetPlayerWantedLevel(playerid) == 1; or whatever.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)