Commands problem
#3

Код:
 if (strcmp("/heal", cmdtext, true, 5) == 0)
        {
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 100);
                SendClientMessage(playerid, 0x0FFDD349, "pm>>Your health and armor have been fully restored.");
                return 1;
        }
Код:
 if (strcmp("/kill", cmdtext, true, 5) == 0)
        {
            SetPlayerHealth(playerid, 0);
            return 1;
        }
You forgot to put return 1; and for command /kill you haved SetPlayerHealth(playerid, 100); wich increase you're health not killing you
Reply


Messages In This Thread
Commands problem - by 7echn0 - 10.08.2012, 23:58
Re: Commands problem - by Devilxz97 - 11.08.2012, 00:04
Re: Commands problem - by CaRa - 11.08.2012, 00:06
Re: Commands problem - by Ranama - 11.08.2012, 00:09
Re: Commands problem - by CaRa - 11.08.2012, 00:10
Re: Commands problem - by Devilxz97 - 11.08.2012, 00:15
Re: Commands problem - by 7echn0 - 11.08.2012, 00:35
Re: Commands problem - by CaRa - 11.08.2012, 00:38
Re: Commands problem - by FalconX - 11.08.2012, 00:57
Re: Commands problem - by 7echn0 - 12.08.2012, 02:21

Forum Jump:


Users browsing this thread: 5 Guest(s)