help making a drunk script
#4

Sorry that was my fault. This should work I just tested it.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/drunk", cmdtext, true, 6) == 0)// 6 is the length of "/drunk"
    {
        if(GetPlayerMoney(playerid) <80) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");
        SetPlayerHealth(playerid,90.0);
        SetPlayerDrunkLevel (playerid, 5000);
        GivePlayerMoney(playerid,-80);
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);

        return 1;
    }
    return 0;
}
I forgot to add the colour code beside the "sendclientmessage"
Reply


Messages In This Thread
help making a drunk script - by sheepondrugs - 06.08.2010, 00:48
Re: help making a drunk script - by Kayla.S - 06.08.2010, 00:56
Re: help making a drunk script - by sheepondrugs - 06.08.2010, 14:01
Re: help making a drunk script - by Kayla.S - 06.08.2010, 14:16
Re: help making a drunk script - by sheepondrugs - 06.08.2010, 14:30
Re: help making a drunk script - by Kayla.S - 06.08.2010, 14:32
Re: help making a drunk script - by sheepondrugs - 06.08.2010, 15:08
Re: help making a drunk script - by (.Aztec); - 06.08.2010, 17:34
Re: help making a drunk script - by sheepondrugs - 06.08.2010, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)