Rnpc [ReP++]
#1

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(playeridparams[])
{
new 
npcid;
SetPlayerPos(npcid0.00.00.0);
RNPC_CreateBuild(npcidPLAYER_RECORDING_TYPE_ONFOOT); // start build mode
RNPC_SetWeaponID(32); // Set weapon
RNPC_AddPause(500); // wait a bit
RNPC_AddMovement(0.00.00.020.020.00.0); // start moving
RNPC_ConcatMovement(0.020.00.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 
0360i+=20) {
    
// Makes the NPC rotate slowly
    
RNPC_SetAngleQuats(0.0i0.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(playerid2.00.00.0);
return 
1;

But when i teleport to the npc place i didn't see anything....?
Please Help !!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)