Command for specific score+
#6

Quote:
Originally Posted by ChandraLouis
Посмотреть сообщение
Here you go.
pawn Код:
CMD:healme(playerid, params[])
{
    if(GetPlayerScore(playerid) <= 100) // If the player's score is lower than 100, then they can't use this command.
    {
        SetPlayerHealth(playerid, 100); // You can change 100 to any health that you want.
    }
    return 1;
}
Quote:
Originally Posted by X337
Посмотреть сообщение
Код:
CMD:healme(playerid, params[])
{
    if(GetPlayerScore(playerid) >= 100) // If the player's score is greater than 100, then they can't use this command.
    {
        SetPlayerHealth(playerid, 100); // You can change 100 to any health that you want.
    }
    return 1;
}
Firstly thanks for your support
Secondly i want to know why X337's code has >= 100, while ChandraLouis and Ironmen's code have <= 100 and which is the correct way?
Reply


Messages In This Thread
Command for specific score+ - by xTURBOx - 27.09.2015, 10:53
Re: Command for specific score+ - by ironmen - 27.09.2015, 11:04
Re: Command for specific score+ - by ChandraLouis - 27.09.2015, 11:43
Re: Command for specific score+ - by ironmen - 27.09.2015, 11:46
Re: Command for specific score+ - by X337 - 27.09.2015, 11:49
Re: Command for specific score+ - by xTURBOx - 27.09.2015, 12:01
Re: Command for specific score+ - by CalvinC - 27.09.2015, 12:22
Re: Command for specific score+ - by J0sh... - 27.09.2015, 12:27

Forum Jump:


Users browsing this thread: 1 Guest(s)