13.05.2013, 01:08
Hello,
I have a problem with my npc.
When I register on my server, at some point, I create a npc (vehicle : plan (592)).
But the vehicle remains in its position and doesn't recording.
Have you an idea of the problem ?
In my function :
Thank you for your help !
I have a problem with my npc.
When I register on my server, at some point, I create a npc (vehicle : plan (592)).
But the vehicle remains in its position and doesn't recording.
Have you an idea of the problem ?
In my function :
Код:
bot_loadNPC("avion_ls_vol", "avion_ls_vol"); TogglePlayerSpectating(playerid, true); register_vehicle[botId] = CreateVehicle(592, 0.0, 0.0, 8.0, 0.0, 1, 1, -1); printf("register_vehicle register_init : %d", register_vehicle[botId]); PutPlayerInVehicle(playerid, register_vehicle[botId], 0); PlayerSpectateVehicle(playerid, 1);
Код:
public bot_loadNPC(fileName[], name[]) { botId = 0; ConnectNPC(fileName, fileName); } public bot_requestClass(playerid) { if(!strcmp(getPlayerName(playerid), "avion_ls_vol", true)) { botId = playerid; SetSpawnInfo(playerid, 0, 255, 0.0, 0.0, 0.0, 0.0, -1, -1, -1, -1, -1, -1); } } public bot_spawn(playerid) { if(!strcmp(getPlayerName(playerid), "avion_ls_vol", true)) { print("[npc:spawn] Initialisation - avion_ls_vol"); ResetPlayerWeapons(playerid); SetPlayerColor(playerid, 0xFFFFFFFF); } }