05.04.2012, 13:07
How can I set a bot to do animation? ApplyAnimation didn't work for me.
The script I did:
The script I did:
PHP код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
SetPlayerSkin(playerid, 28);
SetPlayerPos(playerid, 2084.8064,-1582.5946,13.4408); // Bot);
SetPlayerFacingAngle(playerid, 336.4998);
ApplyAnimation(playerid, "DEALER", "DEALER_IDLE", 4.1, 0, 1, 1, 1, 0, 1);
new Text3D:label = Create3DTextLabel("Wanna get some coke nigga?", COLOR_BLUE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
}
else
{
SetPlayerPos(playerid, 2084.8809,-1565.4945,13.3551);
SetPlayerColor(playerid, 0xFFFFFF00);
GivePlayerMoney(playerid, 10000);
}
return 1;
}