08.08.2010, 18:30
this is what i am working with. this is all one line, intended to get someone drunk when they pick up the beer. at first i just set their drunk level and it was fine, but it didnt stack. i want them to stack (2 beers=6000 drunk level).
i also wanted the player to lose some health so they wouldnt just completely fill up on alcohol (in RL you will die if you drink too much), but so far all i can get out of it is the player DIES when taking their first drink. i will post more of this script if you need to see more. thank you for any help.
if(pickupid == beer) (newdrunklevel=(drunklevel+3000)), (newhealthlevel=(healthlevel-10)), SetPlayerDrunkLevel(playerid,newdrunklevel), GivePlayerMoney(playerid, -50), SetPlayerHealth(playerid,newhealthlevel);
i also wanted the player to lose some health so they wouldnt just completely fill up on alcohol (in RL you will die if you drink too much), but so far all i can get out of it is the player DIES when taking their first drink. i will post more of this script if you need to see more. thank you for any help.
if(pickupid == beer) (newdrunklevel=(drunklevel+3000)), (newhealthlevel=(healthlevel-10)), SetPlayerDrunkLevel(playerid,newdrunklevel), GivePlayerMoney(playerid, -50), SetPlayerHealth(playerid,newhealthlevel);

