Litle Question !
#6

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
Take this as example
PHP код:
enum CPInfo
{
        
Float:CPX,
        
Float:CPY,
        
Float:CPZ,
        
ActorID,
        
Float:ActorX,
        
Float:ActorY,
        
Float:ActorZ,
        
ActorSkin,
        
ActorVW
};
new 
Float:CheckPoint[][CPInfo] =
{
    {
CPXCPYCPZActorIDActorXActorYActorZActorSkinActorVW}//You can add more
};
CMD:test(playeridparams[])
{
    new 
CPPos[3], ActorPos[4], actorskinAID;
    new 
randomcp random(sizeof(Checkpoint));
    
CPPos[0] = CheckPoint[randomcp][CPX];
    
CPPos[1] = CheckPoint[randomcp][CPY];
    
CPPos[2] = CheckPoint[randomcp][CPZ];
    
//Actor
    
AID CheckPoint[randomcp][ActorID];
    
actorskin CheckPoint[randomcp][ActorSkin];
    
ActorPos[0] = CheckPoint[randomcp][ActorX];
    
ActorPos[1] = CheckPoint[randomcp][ActorY];
    
ActorPos[2] = CheckPoint[randomcp][ActorZ];
    
ActorPos[3] = CheckPoint[randomcp][ActorVW];
    
CreatePlayerCheckpoint(playeridCPPos[0], CPPos[1], CPPos[2], 5.0);
    
AID CreateActor(actorskinActorPos[0], ActorPos[1], ActorPos[2], 0.0);
    
SetActorVirtualWorld(AIDActorPos[3]);
    return;

how can i apply animation for the actor appear !
"FOOD", "FF_Sit_Eat3", 4.0, 1, 0, 0, 0, 0, 1);
Reply


Messages In This Thread
Litle Question ! - by TYDS - 07.11.2016, 02:04
Re: Litle Question ! - by Hansrutger - 07.11.2016, 02:51
Re: Litle Question ! - by thefirestate - 07.11.2016, 03:00
Re: Litle Question ! - by TYDS - 07.11.2016, 03:01
Re: Litle Question ! - by IceBilizard - 07.11.2016, 04:03
Re: Litle Question ! - by TYDS - 07.11.2016, 14:32
Re: Litle Question ! - by TYDS - 08.11.2016, 02:05
Re: Litle Question ! - by Pearson - 08.11.2016, 02:09
Re: Litle Question ! - by TYDS - 08.11.2016, 02:13
Re: Litle Question ! - by Tass007 - 08.11.2016, 02:29

Forum Jump:


Users browsing this thread: 3 Guest(s)