ApplyAnimation(playerid, "GANGS", "smkcig_prtl",4.1,0,1,1,0,0);
pawn Код:
|
if(weed[playerid] > 0)
{
if(newkeys == KEY_FIRE)
{
weed[playerid] ++;
ApplyAnimation(playerid, "GANGS", "smkcig_prtl",4.1,0,1,1,0,0);
new dlevel = GetPlayerDrunkLevel(playerid);
if((dlevel + 2000) < 10000) { SetPlayerDrunkLevel(playerid,(dlevel + 2000)); }
if(weed[playerid] == 10)
{
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
}
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
SendEmote(playerid,"finisce di fumare la sua canna e la getta a terra.");
weed[playerid] = 0;
}
}
}