[Help FCNPC 2.0] FCNPC_StartPlayingPlayback dont work - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help FCNPC 2.0] FCNPC_StartPlayingPlayback dont work (
/showthread.php?tid=662680)
[Help FCNPC 2.0] FCNPC_StartPlayingPlayback dont work -
bookknp - 08.01.2019
hello guys, could someone tell me how to start a recording in FCNPC 2.0? (callbacks, native, etc)
I have this code but dont work:
PHP код:
public OnGameModeInit()
{
bot19 = FCNPC_Create("Cristiano");
printf("Cristiano: %i", bot19);
FCNPC_Spawn(bot19, Mechanicid[random(4)], -77.0284,-1200.1984,2.3811);
FCNPC_SetInvulnerable(bot19, true);
SetPlayerColor(bot19,color_MECHANIC);
SetTimer("FCNPC_OnVehicleEntryComplete", 500, false);
FCNPC_StartPlayingPlayback(bot19, "Kanjo1");
return 1;
}
public FCNPC_OnVehicleEntryComplete(npcid, vehicleid, seatid)
{
FCNPC_EnterVehicle(bot19, 8, 0, 0);
return 1;
}
Re: [Help FCNPC 2.0] FCNPC_StartPlayingPlayback dont work -
bookknp - 08.01.2019
Quote:
Originally Posted by bookknp
hello guys, could someone tell me how to start a recording in FCNPC 2.0? (callbacks, native, etc)
I have this code but dont work:
PHP код:
public OnGameModeInit()
{
bot19 = FCNPC_Create("Cristiano");
printf("Cristiano: %i", bot19);
FCNPC_Spawn(bot19, Mechanicid[random(4)], -77.0284,-1200.1984,2.3811);
FCNPC_SetInvulnerable(bot19, true);
SetPlayerColor(bot19,color_MECHANIC);
SetTimer("FCNPC_OnVehicleEntryComplete", 500, false);
FCNPC_StartPlayingPlayback(bot19, "Kanjo1");
return 1;
}
public FCNPC_OnVehicleEntryComplete(npcid, vehicleid, seatid)
{
FCNPC_EnterVehicle(bot19, 8, 0, 0);
return 1;
}
|
Can someone help me?? BUMP