Noob Question *In Need Of Help ASAP*
#3

@blackwave: it will return errors due a extra bracket and it will also return SERVER: Unknown Command

@Post author: you need to learn to script
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/Ikky Wikky Medicine *puke*", cmdtext, true) == 0)
    {
        if (GetPlayerHealth(playerid) > 94)
        {
            return SendClientMessage(playerid,0xFF0000,"Lies you has full health already!");
        }
        else if (GetPlayerHealth(playerid) < 100)
        {
            SendClientMessage(playerid,0xFF0000,"There ya go nub");
            SetPlayerHealth(playerid,100);
            GivePlayerMoney(playerid,-1337);
            return 1;
        }
    }
    return 0;
}
Reply


Messages In This Thread
Noob Question *In Need Of Help ASAP* - by [DBZ]Ali - 20.12.2010, 18:36
Re: Noob Question *In Need Of Help ASAP* - by blackwave - 20.12.2010, 18:41
Respuesta: Noob Question *In Need Of Help ASAP* - by admantis - 20.12.2010, 18:43
AW: Noob Question *In Need Of Help ASAP* - by [SU]Balli - 20.12.2010, 18:51
Respuesta: AW: Noob Question *In Need Of Help ASAP* - by admantis - 20.12.2010, 18:59
Re: Noob Question *In Need Of Help ASAP* - by blackwave - 20.12.2010, 19:01
Re: Noob Question *In Need Of Help ASAP* - by [DBZ]Ali - 21.12.2010, 10:14

Forum Jump:


Users browsing this thread: 2 Guest(s)