Jump to content
  • 0

la compile merge dar dc nu si in joc? plz


Sfinx_17

Question

6 answers to this question

Recommended Posts

astai codu sa se conecteze botul:

public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
   	ConnectNPC("Skynet 1","taximetristul"); // codu asta face ca sa se conecteze Npc-ul in server
        return 1;
}
astai codul ptr spawn tot ptr bot:
new NPCVehicle; // asta e o variabila locala adica doar in functia asta OnPlayerSpawn se poate folosi
    PlayerPlaySound(playerid,SOUND_OFF,-1421.1034,1488.5735,11.8084);
    if(IsPlayerNPC(playerid)) // aici verificam dak playerul e un NPC
    {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului
    if(!strcmp(npcname, "Skynet 1", true)) //Verificam daca numele NPCului este "Skynet 1"
    {
    PutPlayerInVehicle(playerid, NPCVehicle, 0); // codu asta pune NPC-ul in vehicul
    }
	return 1;
	}
	return 1;
}
astai ptr ca sa imi mearga   fisierul    .rec  fisierul inregistrat:
public NPC:StartRecordingPlayback(playbacktype, recordname[]) // This will run a .rec file
{
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"at400_lv_to_sf_x1");
}
iar asta e ptr ca se se repete inregistrarea botului automat ...cand sa sfarsit..so ia de la capat:
public OnRecordingPlaybackEnd() // This callback is called when a recorded file being reproduced with NPC:StartRecordingPlayback has reached to its end.
{
	StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"at400_lv_to_sf_x1");
}

ce mai lipseste sa fac va rog

Link to comment
Share on other sites

botu merge pe jos sau cu masina?

daca cu masina pune asa

new NPCVehicle;

public OnGameModeInit()

{

NPCVehicle = CreateVehicle(id, x, y, z, 82.2873, 0, 1, 60);//in loc de x,y,z pui cordonatele de unde porneste botu

return 1;

}

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Link to comment
Share on other sites

dupa cum am mai postat acuma 2 luni sau o luna inainte...tot aceasi problema ..dar mereu imi da undefined symbol mereu, am incercat un exemplu  cu "new NPCVehicle" o facusem globala variabila...dupa aia am puso la OnGameModeInit si am scris asa:

public OnGameModeInit()

{

  NPCVehicle = Create vehicle(  etc etc... );

  return 1;

}

si dc nu imi merge

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.