08.11.2013, 10:20
Hey I want to improve pepper spray and for now I did this:
So if player is cop and weapon id is 41 (spray) and if I will spray someone his DrunkLevel will be high
And also I want to apply animation but nvm this right now I will choose right animation latter..
Umm will this work? how should I lower SetPlayerDrunkLevel faster? Should I add timer ? or..? and can someone test this for me it will work?
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 41 && IsPlayerCop(playerid))
{
SetPlayerDrunkLevel(playerid, 50000);
ApplyAnimation(playerid,"CRACK","crckdeth1 ",4.0,0,0,0,0,0,0);
}
return 1;
}
And also I want to apply animation but nvm this right now I will choose right animation latter..
Umm will this work? how should I lower SetPlayerDrunkLevel faster? Should I add timer ? or..? and can someone test this for me it will work?