Picking up crates - array - playertopoint
#5

PHP Code:
forward PokupioKutiju(playeridcrateid);
public 
PokupioKutiju(playeridcrateid)
{
    
SetPlayerAttachedObject(playerid0301460.0959990.251999, -0.146999, -116.199989, -20.90000579.199981);
    
//DestroyObject(crate[crateid]); // how to work with this ???
    
ApplyAnimation(playerid"CARRY""crry_prtial"4.011111);
    
SetPlayerSpecialAction(playeridSPECIAL_ACTION_CARRY);
    
    return 
1;

You can set your function to pass the crate id as well. Your timer will look something like:

PHP Code:
SetTimerEx("PokupioKutiju"1000false"ii"playeridi); 
Reply


Messages In This Thread
Picking up crates - array - playertopoint - by Saddin - 11.04.2017, 13:27
Re: Picking up crates - array - playertopoint - by DarkSkull - 11.04.2017, 13:40
Re: Picking up crates - array - playertopoint - by AndreiWow - 11.04.2017, 13:41
Re: Picking up crates - array - playertopoint - by Saddin - 11.04.2017, 13:42
Re: Picking up crates - array - playertopoint - by DarkSkull - 11.04.2017, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)