PDA

View Full Version : Rnpc [ReP++]


nezo2001
17/01/2015, 08:15 AM
I have just downloaded this
http://forum.sa-mp.com/showthread.php?t=355849
And i tried an example on a wiki in a command so i make this
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 :D !!