17.01.2015, 08:15
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
But when i teleport to the npc place i didn't see anything....?
Please Help !!
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;
}
Please Help !!