Pasul 1: Deschidem pawno si sus in GM vom scrie :
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
masina = AddStaticVehicle(coordonatele..) cum aveti voi acolo..
Pasul 3: Mergem la OnPlayerStateChange
1. Adaugam:
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 .
SURSA : http://forum.sa-mp.com/archive/index.php/f-77.htm