Jump to content
  • 0

vreau doar o explikatie nu alt ceva


Question

Posted

Pasul 1:

Te duci in joc spawnezi masina te duci unde vrei sa tio spawneze dai /save ==>> te duci unde ai instalat Gta ==>> savedposition Ex: AddStaticVehicle(coordonatele ); // numele cui o faci Si o bagi in GM!

Pasul 2:

Te duci in GM si bagi asta

if(newcar == id de la MASINA)

      {

            new sendername[MAX_PLAYER_NAME];

            GetPlayerName(playerid, sendername, sizeof(sendername));

          if(strcmp(sendername," Numele jucatorului caruia o faci!",true))

        {

          SendClientMessage(playerid,COLOR_GREY,"  You do not have the keys of this car !");

              RemovePlayerFromVehicle(playerid);

            }

      }

nu inteleg unde sa pun eu codul ala in care gm explicaiti

stiti cum am facut eu :

am intrat in sv mam dus la game mode /akolo era amx si pawno am dat pe pawno si am intrat/si am pus akolo coordonatele id la masina si cod ala unele sub altele in ordine (si leam completat corekt ) de ce nu merge nu e bine asa?

supuetimi voi cum ii bne unde gasesc gama modul ala

6 answers to this question

Recommended Posts

Posted

deci ma, la functia onplayerstatechange mergi mai jos.. si poate ai asta.. tu sau alta...

[pawn]

if(IsATruck(newcar))

{

    if(PlayerInfo[playerid][pJob] == 16)

{

format(string, sizeof(string), "Products: %d/%d", PlayerHaul[newcar][pLoad],PlayerHaul[newcar][pCapasity]);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

SendClientMessage(playerid, CRISTIAN, "____________________________________");

SendClientMessage(playerid, COLOR_GRAD4, "INFO: You can deliver Products to Businesses.");

SendClientMessage(playerid, COLOR_GRAD3, "INFO: Commands are /load /buyprods /sellprods");

}

else

{

        RemovePlayerFromVehicle(playerid);

        SendClientMessage(playerid, COLOR_GREY,"** You are not a Trucker job !");

}

}[/pawn]

iar sub aia pui

[pawn]

if(newcar == id de la MASINA)

{

new sendername[MAX_PLAYER_NAME];

        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(strcmp(sendername," Numele jucatorului caruia o faci!",true))

        {

        SendClientMessage(playerid,COLOR_GREY,"  You do not have the keys of this car !");

                RemovePlayerFromVehicle(playerid);

}

}[/pawn]

 

Posted

Ba tu chiar esti batut in cap?

L-ai descoperit, fa-te Sherlock!

emoza, daca nici asa nu pricepi (cum ti-a explicat CrystyaN) esti but. Fara "coade peste coade" n-avem cum sa-ti explicam, baga o raita pe WIKI: http://wiki.sa-mp.com/

Topic locked!

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.