In acest tutorial veti invata cum sa faceti o masina personala pentru cineva|sau pentru tine
Pasul 1: Deschidem pawno si facem un nou script
Sub #define FILTERSCRIPT
scriem: new masina; *la masina puneti ce nume doriti sau puteti pune numele celui caruia io faceti!
Pasul 2: La OnFilterScriptInit:
1.Mergem in sa-mp debug dam /v [id masina] ex: id 522(nrg-500) apoi dam /save masina player
2.Apoi mergem in My Documents>>Gta San Andreas user Files>>samp>>savedpositions.txt si cautam pozitia salvata
3.Mergem apoi la OnFilterScriptInit si adaugam
Code: [Select]
masina = AddStaticVehicle(522,2137.2576,-1471.1782,23.5312,93.9336,144,1); // asta este doar un ex
Pasul 3: Mergem la OnPlayerStateChange
1. Adaugam:
Code: [Select]
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 player-ului", true) == 0)
{
return 1;
}
else
{
RemovePlayerFromVehicle(playerid);
}
}
}
Sursa: http://www.sa-mp.ro/forum/index.php/topic,13779.0.html
Pasul 1: Deschidem pawno si facem un nou script
Sub #define FILTERSCRIPT
scriem: new masina; *la masina puneti ce nume doriti sau puteti pune numele celui caruia io faceti!
Pasul 2: La OnFilterScriptInit:
1.Mergem in sa-mp debug dam /v [id masina] ex: id 522(nrg-500) apoi dam /save masina player
2.Apoi mergem in My Documents>>Gta San Andreas user Files>>samp>>savedpositions.txt si cautam pozitia salvata
3.Mergem apoi la OnFilterScriptInit si adaugam
Code: [Select]
masina = AddStaticVehicle(522,2137.2576,-1471.1782,23.5312,93.9336,144,1); // asta este doar un ex
Pasul 3: Mergem la OnPlayerStateChange
1. Adaugam:
Code: [Select]
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 player-ului", true) == 0)
{
return 1;
}
else
{
RemovePlayerFromVehicle(playerid);
}
}
}
Sursa: http://www.sa-mp.ro/forum/index.php/topic,13779.0.html