SA-MP Forums Archive
Weed Smoke - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Weed Smoke (/showthread.php?tid=503383)



Weed Smoke - Carxi - 29.03.2014

I've found the cigarette object 3027 but i like to have the smoke animation witouth the default cigarette.
Look the video for understand my request!
[ame]http://www.youtube.com/watch?v=LSYcAQp_2gU[/ame]


Re: Weed Smoke - EiresJason - 29.03.2014

pawn Код:
ApplyAnimation(playerid, "GANGS", "smkcig_prtl",4.1,0,1,1,0,0);



Re: Weed Smoke - Carxi - 29.03.2014

Quote:
Originally Posted by EiresJason
Посмотреть сообщение
pawn Код:
ApplyAnimation(playerid, "GANGS", "smkcig_prtl",4.1,0,1,1,0,0);
Is correct?
PHP код:
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=0i<MAX_PLAYER_ATTACHED_OBJECTSi++)
                {
                if(
IsPlayerAttachedObjectSlotUsed(playeridi)) RemovePlayerAttachedObject(playeridi);
                }
                
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
                
SendEmote(playerid,"finisce di fumare la sua canna e la getta a terra.");
                
weed[playerid] = 0;
            }
        }
    } 



Re: Weed Smoke - EiresJason - 29.03.2014

Don't remove all of their attached objects. Just remove the item in the slot in which you put the smoke in when you typed /smoke or something