31.08.2014, 23:09
I'd add some more checks to this. I mean, you don't want someone to be drunk from you hitting them... And, also according to your code they can also be drunk from fall damage...
Example,
Example,
pawn Код:
if(gunMode[issuerid] == 3 && GetPlayerWeapon(playerid) > 0 && playerid != issuerid))
{
SetPlayerDrunkLevel(playerid, 6000);
SetTimerEx("UnDrunk", 25000, false, "i", playerid);
}