help making a drunk script
#8

Quote:
Originally Posted by sheepondrugs
Посмотреть сообщение
Hi,

just tested the script, the drunk thing works a treat, but it doesn't take money or HP.


it only take money + HP if they are driving
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/drunk", cmdtext, true, 6) == 0)// 6 is the length of "/drunk"
    {
        new Float:Health;
        if(GetPlayerMoney(playerid) <80) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");
        if(!IsPlayerInAnyVehicle(playerid))
        {
        GetPlayerHealth(playerid, Health);
        SetPlayerHealth(playerid,Health-10);
        SetPlayerDrunkLevel (playerid, 5000);
        GivePlayerMoney(playerid,-80);
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
        }
        else return SendClientMessage(playerid, 0xFFFFFF, "You can only use this on foot!");
        return 1;
    }
    return 0;
}
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)