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.
  • Similar Content

    • By ItzGabi2k
      Nu imi merg comenzile:
      /shopinfo, /normalshop, /vipcars, extrapackshop
      YCMD:shopinfo(playerid, params[], help) { ShopType[ playerid ] = 0; ShowShop( playerid ); return true; }
      YCMD:normalshop(playerid, params[], help) { ShopType[ playerid ] = 1; ShowShop( playerid ); return true; }
      YCMD:vipcars(playerid, params[], help) { ShopType[ playerid ] = 2; ShowShop( playerid ); return true; }
      YCMD:extrapackshop(playerid, params[], help) { ShopType[ playerid ] = 3; ShowShop( playerid ); return true; }
      YCMD:shop(playerid, params[], help) {
          SCM(playerid, COLOR_PURPLE, ">> {FFFFFF}Comanda de /shop a fost schimbata:");
          SCM(playerid, COLOR_PURPLE, ">> {FFFFFF}Shop Info:     /shopinfo");
          SCM(playerid, COLOR_PURPLE, ">> {FFFFFF}Normal Shop: /normalshop");
          SCM(playerid, COLOR_PURPLE, ">> {FFFFFF}V.I.P Cars:  /vipcars");
          SCM(playerid, COLOR_PURPLE, ">> {FFFFFF}Extra Packs: /extrapackshop");
          return true;
      }
    • By GamerulFOX
      Salut ! Nu merge o verificare ! Daca acel player, are acei bani, ii ofera mesajul "Acel jucator nu are suficienti lei pentru a platii amenda" ! Ce am facut gresit ?


      CMD:amenda(playerid, params[])
      {
          new id, amenda, string[256], Float:x, Float:y, Float:z, name[MAX_PLAYER_NAME];
          GetPlayerName(playerid, name, sizeof(name));
          GetPlayerPos(id, x, y, z);
          if(fPolitie[playerid] == 0) return SendClientMessage(playerid, RED, "Nu esti din factiunea 'Politie' !");
          if(sscanf(params, "ud", id, amenda)) return SendClientMessage(playerid, 0xff0000FF, "/amenda <playerid/name> <amount>");
          if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, 0xff0000FF, "Acel jucator nu este conectat!");
          if(!IsPlayerInRangeOfPoint(playerid, 2.0, x, y ,z)) return SendClientMessage(playerid, 0xff0000FF, "Nu esti langa acel player!");
          if(GetPlayerMoney(id) != amenda) return SendClientMessage(playerid, 0xff0000FF, "Acel jucator nu are suficienti lei pentru a platii amenda!");
          GivePlayerMoney(id, -amenda);
          format(string, sizeof(string), "Ai fost amendat de politistul %s!", name);
          SendClientMessage(id, 0x00aeffFF, string);
          return 1;
      }
    • By GamerulFOX
      CMD:cursataxi(playerid, params[]) {     new id, bani, string[256], string1[256], name[MAX_PLAYER_NAME], name1[MAX_PLAYER_NAME];     GetPlayerName(playerid, name, sizeof(name));     GetPlayerName(id, name1, sizeof(name1));     if(sscanf(params, "ud", id, bani)) return SendClientMessage(playerid, SYNTAX, "/cursataxi <playerid/name> <amount>");     new Float:x, Float:z, Float:y;     GetPlayerPos(id, Float:x, Float:y, Float:z);     if(fTaxi[playerid] == 0) return SendClientMessage(playerid, 0xff0000FF, "Nu esti din factiunea 'Taxi' !");     if(!IsPlayerInVehicle(playerid, cTaxi[0])) return SendClientMessage(playerid, 0xff0000FF, "Nu esti in masina de taxi !");     if(!IsPlayerInVehicle(playerid, cTaxi[1])) return SendClientMessage(playerid, 0xff0000FF, "Nu esti in masina de taxi !");     if(!IsPlayerInVehicle(playerid, cTaxi[2])) return SendClientMessage(playerid, 0xff0000FF, "Nu esti in masina de taxi !");     if(!IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z)) return SendClientMessage(playerid, 0xff0000FF, "Nu esti langa acel player!");     if(GetPlayerMoney(id) < bani) return SendClientMessage(playerid, 0xff0000FF, "Acel player nu are suficienti lei pentru a platii cursa!");     if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, 0xff0000FF, "Acel jucator nu este conectat!");     format(string, sizeof(string), "Iai oferit o cursa lui %s, pentru %d lei!", name1, bani);     SendClientMessage(playerid, 0x00aeffFF, string);     format(string1, sizeof(string1), "Taximetristul %s ti-a oferit o cursa pe %d lei!", name, bani);     SendClientMessage(playerid, 0x10d4deff, string);     GivePlayerMoney(id, -bani);     GivePlayerMoney(playerid, bani);     return 1; } VREAU SA MENTIONEZ CA AM INCERCAT SI ASA CMD:cursataxi(playerid, params[]) {     new id, bani, string[256], string1[256], name[MAX_PLAYER_NAME], name1[MAX_PLAYER_NAME];     GetPlayerName(playerid, name, sizeof(name));     GetPlayerName(id, name1, sizeof(name1));     if(sscanf(params, "ud", id, bani)) return SendClientMessage(playerid, SYNTAX, "/cursataxi <playerid/name> <amount>");     new Float:x, Float:z, Float:y;     GetPlayerPos(id, Float:x, Float:y, Float:z);     if(fTaxi[playerid] == 0) return SendClientMessage(playerid, 0xff0000FF, "Nu esti din factiunea 'Taxi' !");     if(GetPlayerVehicleID(playerid) != cTaxi[0] || GetPlayerVehicleID(playerid) != cTaxi[1] || GetPlayerVehicleID(playerid) != cTaxi[2]) return SendClientMessage(playerid, 0xff0000FF, "Nu esti in masina de taxi!");     if(!IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z)) return SendClientMessage(playerid, 0xff0000FF, "Nu esti langa acel player!");     if(GetPlayerMoney(id) < bani) return SendClientMessage(playerid, 0xff0000FF, "Acel player nu are suficienti lei pentru a platii cursa!");     if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, 0xff0000FF, "Acel jucator nu este conectat!");     format(string, sizeof(string), "Iai oferit o cursa lui %s, pentru %d lei!", name1, bani);     SendClientMessage(playerid, 0x00aeffFF, string);     format(string1, sizeof(string1), "Taximetristul %s ti-a oferit o cursa pe %d lei!", name, bani);     SendClientMessage(playerid, 0x10d4deff, string);     GivePlayerMoney(id, -bani);     GivePlayerMoney(playerid, bani);     return 1; }

       
    • By Monkey2K
      Salut, cand folosesc comanda /save imi apare eroare aceasta "i can't open the savepositions.txt file for append". Cum o pot rezolva?
      Edit: Am fisierul savepositions in GTA San Andreas User Files dar nu salveaza.
    • By GamerulFOX
      Salut cine poate sa imi faca o comanda /jobs ? Care sa aibe doar un joc si sa scrie in ea //aici pui cordonatele ! Va rog !
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.