SA-MP Forums Archive
Rnpc [ReP++] - 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: Rnpc [ReP++] (/showthread.php?tid=558446)



Rnpc [ReP++] - nezo2001 - 17.01.2015

I have just downloaded this
https://sampforum.blast.hk/showthread.php?tid=355849
And i tried an example on a wiki in a command so i make this
PHP код:
CMD:testnpc(playerid, params[])
{
new 
npcid;
SetPlayerPos(npcid, 0.0, 0.0, 0.0);
RNPC_CreateBuild(npcid, PLAYER_RECORDING_TYPE_ONFOOT); // start build mode
RNPC_SetWeaponID(32); // Set weapon
RNPC_AddPause(500); // wait a bit
RNPC_AddMovement(0.0, 0.0, 0.0, 20.0, 20.0, 0.0); // start moving
RNPC_ConcatMovement(0.0, 20.0, 0.0);  // Continue walking
RNPC_AddPause(200); // wait a bit again
RNPC_SetKeys(128); // aim straight forward
RNPC_AddPause(500);
RNPC_SetKeys(128 + 4); // Start shooting straight forward
RNPC_AddPause(500);
for (new 
i = 0; i < 360; i+=20) {
    
// Makes the NPC rotate slowly
    
RNPC_SetAngleQuats(0.0, i, 0.0);
    
RNPC_AddPause(150);
}
RNPC_SetKeys(128); // stop shooting
RNPC_AddPause(500);
RNPC_SetKeys(0); // stop aiming
RNPC_FinishBuild(); // end the build mode and finish the build
RNPC_StartBuildPlayback(npcid); // start playback
SetPlayerPos(playerid, 2.0, 0.0, 0.0);
return 
1;
} 
But when i teleport to the npc place i didn't see anything....?
Please Help !!