Bot animation
#1

How can I set a bot to do animation? ApplyAnimation didn't work for me.
The script I did:
PHP код:
public OnPlayerSpawn(playerid)
{
    if(
IsPlayerNPC(playerid))
    {
        
SetPlayerSkin(playerid28);
        
SetPlayerPos(playerid2084.8064,-1582.5946,13.4408); // Bot);
        
SetPlayerFacingAngle(playerid336.4998);
        
ApplyAnimation(playerid"DEALER""DEALER_IDLE"4.1011101);
        new 
Text3D:label Create3DTextLabel("Wanna get some coke nigga?"COLOR_BLUE30.040.050.040.00);
        
Attach3DTextLabelToPlayer(labelplayerid0.00.00.1);
    }
    else
    {
        
SetPlayerPos(playerid2084.8809,-1565.4945,13.3551);
        
SetPlayerColor(playerid0xFFFFFF00);
        
GivePlayerMoney(playerid10000);
    }
    return 
1;

Reply


Messages In This Thread
Bot animation - by Tomer!.$ - 05.04.2012, 13:07
Re: Bot animation - by Ezay - 05.04.2012, 13:11
Re: Bot animation - by Tomer!.$ - 05.04.2012, 13:15
Re: Bot animation - by blank. - 05.04.2012, 13:25
Re: Bot animation - by Catalyst- - 05.04.2012, 13:26
Re: Bot animation - by Tomer!.$ - 05.04.2012, 13:41

Forum Jump:


Users browsing this thread: 3 Guest(s)