Commands Aren't Working
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/Kill", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid,0.0);
        SendClientMessage(playerid, 0x000000FF, "You typed /kill there fore you are killed");

        return 1;
    }
    return 0;
}
You can use this one for /kill this works perfectly

pawn Код:
{
    if (strcmp("/Heal", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid,100);
        SendClientMessage(playerid, 0x000000FF, "You typed /heal there fore your health has been set to 100.");

        return 1;
    }
You can use this one for /heal
Reply


Messages In This Thread
Noban IP - by ATomas - 20.06.2012, 13:07
Commands Aren't Working - by Montell - 20.06.2012, 13:22
Re: Commands Aren't Working - by Lordzy - 20.06.2012, 13:38
Re: Commands Aren't Working - by Dare Devil..... - 20.06.2012, 13:42
Re: Commands Aren't Working - by Montell - 20.06.2012, 13:53
Re: Commands Aren't Working - by Montell - 20.06.2012, 13:59
Re: Commands Aren't Working - by Dare Devil..... - 20.06.2012, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)