2021-02-28, 06:17 PM
Sadly, forum.sa-mp is closed and it's difficult to find information regarding FCNPC's
My problem is that it doesn't play animations, I've tried it also with regular npcs - same deal.
I've tried preloading the libs for the player and the npcs - nothing.
here's my code
My problem is that it doesn't play animations, I've tried it also with regular npcs - same deal.
I've tried preloading the libs for the player and the npcs - nothing.
here's my code
Code:
public OnGamemodeInit()
{
kasininkas=FCNPC_Create("Kasininkas");
FCNPC_Spawn(kasininkas,217,-166.7957,1017.0024,19.7427);
}
public Timeris(playerid)
{
SendClientMessage(playerid, 0xff0000,"a");
FCNPC_ApplyAnimation(kasininkas, "BAR", "Barserve_bottle");
SendClientMessage(playerid, 0xff0000,"a");
return 1;
}
//I turn on the timer with -?SetTimerEx("Timeris", 1000,true, "i",playerid);