Jump to content

[Tutorial] Cum faci o masina personala pentru un player


ArMa.BUG
 Share

Recommended Posts

Salut bugged azi o sa va arat cum sa faceti o masina personala pt un player

 

1.Creem new-ul

 

new cars;// la cars puteti sa puneti orice nume

 

 

2. Mergem in Gamemode si cautam linia :OnGameModeInit si adaugam:

 

     cars = AddStaticVehicle( coordonatele)

 

Cum aflam coordonatele:1.deschidem gm-ul 2.mergem in locu unde o sa fie masina si dam /save 3.mergem in  My Documents-GTA San Andreas User Files-samp-savedpositions.txt si cautam pozitia

 

 

 

3.cautam OnPlayerStateChange si adaugam:

 

 

 

new vehicleid = GetPlayerVehicleID(playerid);
new pname[MAX_PLAYER_NAME];

GetPlayerName(playerid, pname, sizeof pname);

if(newstate == PLAYER_STATE_DRIVER)
{
if(vehicleid == id-ul masini)
{
if(strcmp(pname, "numele jucatorului pt caruia ai facut masina", true) == 0)
{
return 1;
}
else
{
RemovePlayerFromVehicle(playerid);
}

}

}

 

 

 

 

 

Explicatii:

masinile din samp http://wiki.sa-mp.com/wiki/Vehicle_Model_ID_List

 

ASPT Criticii /pareri

 

Link to comment
Share on other sites

La: Cum aflam coordonatele? Pentru ce trebuie sa deschidem noi gm-ul/serverul etc? Cand putem foarte frumos sa ne ducem pe alt server si sa dam "/save"? In fine, 4/5 pentru tutorial. Mai ai unele greseli. Dupa restart nu o sa mai fie masina atribuita jucatorului, iar jucatorul o sa aiba cheile 255

Edited by WICKED.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.