20.11.2011, 07:15
(
Последний раз редактировалось MathijsS; 20.11.2011 в 07:16.
Причина: Bad english
)
hello.
I am new so sorry if this is easy.
I have created a npc and he is working.
Now i want if i type for example "start" that the npc will start whit driving.
I have now idea how i should fix that. If you now, can you please help me than.
Thank you.
Code in fs:
Code in npc folder:
EDIT; sorry for my bad english.
I am new so sorry if this is easy.
I have created a npc and he is working.
Now i want if i type for example "start" that the npc will start whit driving.
I have now idea how i should fix that. If you now, can you please help me than.
Thank you.

Code in fs:
Код:
#include <a_samp>
#define COLOR_GREEN 0x33AA33AA
new fast_ls_lv;
public OnGameModeInit()
{
ConnectNPC ("fast_ls_lv","fast_ls_lv");
//
fast_ls_lv = AddStaticVehicle(405,2044.8854,1473.2106,10.4494,181.3339,1,0);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(!strcmp(playername,"fast_ls_lv",true)) {
SetSpawnInfo( playerid, 0, 228, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
PutPlayerInVehicle(playerid, fast_ls_lv, 0);
SetPlayerColor(playerid,0x494543FF);
new Text3D:PTD1 = Create3DTextLabel("NPC_fast_ls_lv(ID:17)",0x33AA33AA,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);
}
return 1;
}
Код:
#define RECORDING "fast_ls_lv"
#define RECORDING_TYPE 1
#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();


