25.06.2013, 15:50
Hello, I'm using The KNPC plugin, to control my NPC's.
Well, I'd got a problem.
when they connect, i'll let them spawn..
I tested them ingame, and yes, they spawn..
When someones is using the drivers licenses test, i want them to move..
But they aint moving..
Code:
It is showing the messages, (tested it with an debug system.).
But the npc wont move.
Well, I'd got a problem.
when they connect, i'll let them spawn..
I tested them ingame, and yes, they spawn..
When someones is using the drivers licenses test, i want them to move..
But they aint moving..
Code:
pawn Код:
case 0: // Driving
{
if(PlayerInfo[playerid][pCarLic]) return SendClientMessage(playerid, COLOR_GREY, "You already have a drivers license.");
if(PlayerInfo[playerid][pMoney] < 50) return SendClientMessage(playerid, COLOR_GREY, "You've insufficient funds. ($50)");
if(DrivingTTest == 2)
{
SendClientMessage(playerid, COLOR_GREY, "The driver instructers are busy at the moment, please try again later!");
}
else if(DrivingTTest == 0) //dmv1
{
DrivingTTest++;
SetPlayerPos(dmv1, 958.7090,-1439.1925,14.0535);
GiveDodMoney(playerid, -50);
DrivingTest[playerid] = 1;
SendClientMessage(playerid,COLOR_LIGHTBLUE,"* Drivers Center: Welcome to the DMV your about to start your driving test.");
SendClientMessage(playerid,COLOR_WHITE,"SERVER: Get in a White premier outside and wait for the Instructer he will tell you what to do.");
RNPC_CreateBuild(dmv1, PLAYER_RECORDING_TYPE_ONFOOT); // start build mode
RNPC_AddMovement(958.7090,-1439.1925,14.0535, 955.9453,-1439.1184,14.0535, 0.006); // start moving
RNPC_AddPause(500); // wait a bit again
RNPC_AddMovement(955.9453,-1439.1184,14.0535, 955.7957,-1435.7535,14.0535, 0.006); // start moving
RNPC_AddPause(500); // wait a bit again
RNPC_AddMovement(955.7957,-1435.7535,14.0535, 963.0611,-1429.8439,14.0535, 0.006); // start moving
RNPC_AddPause(500); // wait a bit again
RNPC_AddMovement(963.0611,-1429.8439,14.0535, 956.7885,-1428.3525,14.0535, 0.006); // start moving
RNPC_AddPause(500); // wait a bit again
RNPC_AddMovement(956.7885,-1428.3525,14.0535, 956.7265,-1423.9318,13.5469, 0.006); // start moving
RNPC_AddPause(500); // wait a bit again
RNPC_AddMovement(956.7265,-1423.9318,13.5469, 958.9656,-1421.0674,13.5469, 0.006); // start moving
RNPC_FinishBuild();
RNPC_StartBuildPlayback(dmv1);
SetTimer("dmv11", 15000, false);
}
else if(DrivingTTest == 1) //dmv2
{
DrivingTTest++;
SetPlayerPos(dmv2, 958.7090,-1439.1925,14.0535);
GiveDodMoney(playerid, -50);
DrivingTest[playerid] = 1;
SendClientMessage(playerid,COLOR_LIGHTBLUE,"* Drivers Center: Welcome to the DMV your about to start your driving test.");
SendClientMessage(playerid,COLOR_WHITE,"SERVER: Get in a White premier outside and wait for the Instructer he will tell you what to do.");
RNPC_CreateBuild(dmv2, PLAYER_RECORDING_TYPE_ONFOOT); // start build mode
RNPC_AddMovement(958.7090,-1439.1925,14.0535, 955.9453,-1439.1184,14.0535, 0.006); // start moving
RNPC_AddPause(500); // wait a bit again
RNPC_AddMovement(955.9453,-1439.1184,14.0535, 955.7957,-1435.7535,14.0535, 0.006); // start moving
RNPC_AddPause(500); // wait a bit again
RNPC_AddMovement(955.7957,-1435.7535,14.0535, 963.0611,-1429.8439,14.0535, 0.006); // start moving
RNPC_AddPause(500); // wait a bit again
RNPC_AddMovement(963.0611,-1429.8439,14.0535, 956.7885,-1428.3525,14.0535, 0.006); // start moving
RNPC_AddPause(500); // wait a bit again
RNPC_AddMovement(956.7885,-1428.3525,14.0535, 956.7265,-1423.9318,13.5469, 0.006); // start moving
RNPC_AddPause(500); // wait a bit again
RNPC_AddMovement(956.7265,-1423.9318,13.5469, 958.9656,-1421.0674,13.5469, 0.006); // start moving
RNPC_FinishBuild();
RNPC_StartBuildPlayback(dmv2);
SetTimer("dmv22", 15000, false);
}
}
But the npc wont move.