SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Română/Romanian > Salonul Scripturilor

Reply
 
Thread Tools Display Modes
Old 15/05/2012, 04:44 PM   #1
Gabyyy
Huge Clucker
 
Join Date: Sep 2011
Posts: 327
Reputation: -1
Default Cum faci o masina personala pentru un player

Creeare masina personala pentru cineva


Salut SA-MP.COM ! In acest tutorial va voi arata cum sa faceti o masina personala pentru un jucator
Sa incepem

Pasul 1: Deschidem pawno si sus in GM vom scrie :

Code:
new masina;
La masina puteti pune orice nume doriti sau puteti pune numele jucatorului caruia faceti masina..

Pasul 2: Apasam CTRL+F si in casuta scriem OnGameModeInit
1.Mergem pe server intram in masina si scriem /save
2.Apoi mergem in My Documents>>GTA San Andreas User Files>>samp>>savedpositions.txt si cautam pozitia salvata
3.Mergem apoi la OnGameModeInit si adaugam

Code:
masina = AddStaticVehicle(coordonatele..) cum aveti voi acolo..
Pasul 3: Mergem la OnPlayerStateChange
1. Adaugam:

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

GetPlayerName(playerid, pname, sizeof pname);

if(newstate == PLAYER_STATE_DRIVER)
{
if(vehicleid == masina)
{
if(strcmp(pname, "numele jucatorului", true) == 0)
{
return 1;
}
else
{
RemovePlayerFromVehicle(playerid);
}

}

}
Dupa ce ati facut tot de mai sus apasati F5 ca sa compilati. Succes !
Astept comentarii/critici/pareri/nelamuriri .
Gabyyy is offline   Reply With Quote
Old 15/05/2012, 08:24 PM   #2
ArCxD
Little Clucker
 
Join Date: May 2012
Location: ad
Posts: 45
Reputation: 0
Default Re: Cum faci o masina personala pentru un player

AuzI Nu stiu Ceva .. Creez Masina Cu /Veh Ii dau /save SI ce trb sa ai fak Ka sa Ramana Pozitionata In locul acela |||?>
ArCxD is offline   Reply With Quote
Old 15/05/2012, 09:29 PM   #3
Gabyyy
Huge Clucker
 
Join Date: Sep 2011
Posts: 327
Reputation: -1
Default Re: Cum faci o masina personala pentru un player

Quote:
Originally Posted by ArCxD View Post
AuzI Nu stiu Ceva .. Creez Masina Cu /Veh Ii dau /save SI ce trb sa ai fak Ka sa Ramana Pozitionata In locul acela |||?>
te duci in My Documents -> GTA San Andreas User Files -> savedpositions.txt si copii ce e acolo si pui sub public OnGameModeInit din GameMode-ul tau.
Gabyyy is offline   Reply With Quote
Old 15/05/2012, 09:42 PM   #4
ArCxD
Little Clucker
 
Join Date: May 2012
Location: ad
Posts: 45
Reputation: 0
Default Re: Cum faci o masina personala pentru un player

Am MERS akolo SI Nu exista Fisierul savedpositions.txt
ArCxD is offline   Reply With Quote
Old 16/05/2012, 05:57 AM   #5
Gabyyy
Huge Clucker
 
Join Date: Sep 2011
Posts: 327
Reputation: -1
Default Re: Cum faci o masina personala pentru un player

Quote:
Originally Posted by ArCxD View Post
Am MERS akolo SI Nu exista Fisierul savedpositions.txt
Inseamna ca nu ai dat /save..?
Gabyyy is offline   Reply With Quote
Old 16/05/2012, 07:18 AM   #6
ArCxD
Little Clucker
 
Join Date: May 2012
Location: ad
Posts: 45
Reputation: 0
Default Re: Cum faci o masina personala pentru un player

Am dat ua .... /veh 411 0 0 Sa A aprut masina Am urcat In ea AM puso In parkare ... Si am scris /save

Si scrie ca sa salvat
ArCxD is offline   Reply With Quote
Old 16/05/2012, 02:00 PM   #7
Gabyyy
Huge Clucker
 
Join Date: Sep 2011
Posts: 327
Reputation: -1
Default Re: Cum faci o masina personala pentru un player

Quote:
Originally Posted by ArCxD View Post
Am dat ua .... /veh 411 0 0 Sa A aprut masina Am urcat In ea AM puso In parkare ... Si am scris /save

Si scrie ca sa salvat
asa si? ce vrei?
Gabyyy is offline   Reply With Quote
Old 16/05/2012, 03:29 PM   #8
Skaizo
Gangsta
 
Skaizo's Avatar
 
Join Date: Sep 2010
Location: Romanian
Posts: 858
Reputation: 15
Default Re: Cum faci o masina personala pentru un player

pawn Code:
My Documents>>GTA San Andreas User Files>>samp>>savedpositions.txt
daca nui, incearca sa faci in felul urmator
Porneste "samp_debug.exe" in folder unde lai instalat Gta San Andreas,intra si apasa pe t scri "/save" si va salva acolo My Documents>>GTA San Andreas User Files>>Samp
__________________
My works(Romanian)
Thanks To Jansish For Signature
[Tutorial]rezolvarea eroare pawno failed to set data for si File or function is not found
I am Russian?
No
You are Russian army fuck?
Yes but no Fuck
Lol )
Skaizo is offline   Reply With Quote
Old 16/05/2012, 03:57 PM   #9
[NoV]LaZ
High-roller
 
Join Date: May 2008
Posts: 1,464
Reputation: 85
Default Re: Cum faci o masina personala pentru un player

Nu ai parametrul vehicleid in OnPlayerStateChange si indenteaza-ti codul.
[NoV]LaZ is offline   Reply With Quote
Old 15/09/2012, 08:15 AM   #10
DiGiTaL_AnGeL
High-roller
 
DiGiTaL_AnGeL's Avatar
 
Join Date: Aug 2012
Location: România
Posts: 1,899
Reputation: 97
Default Re: Cum faci o masina personala pentru un player

In tutorial ai uitat sa spui ca la AddStaticVehicle, pe langa coordonate, se pun si: model masina, culori.
__________________

DiGiTaL_AnGeL is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problema masina personala BlAcK.AnGeL Română/Romanian 3 02/02/2012 12:34 PM
Cum faci spawn Demoslasher Română/Romanian 2 01/05/2011 07:27 PM
Ajutor Masina Personala VerSion Română/Romanian 10 30/04/2011 09:00 PM
Tutorial masina personala Ethernos Română/Romanian 13 18/03/2010 02:16 PM
[Tutorial] Masina Personala UnknownKiller Română/Romanian 1 18/03/2010 01:55 PM


All times are GMT. The time now is 04:53 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.