Jump to content
  • 0

vreau doar o explikatie nu alt ceva


emoza

Question

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

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

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]

 

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.