Jump to content

Question

Posted

Salut, deci am un gm pe care am pus car ownership cu /v din alt gamemod dar am o problema cand ma urc in masina nu imi apare sa dau /v buy sau daca e cumparata nu imi apare a cui este...

Ma poate ajuta cineva?

8 answers to this question

Recommended Posts

Posted

Pe gm de unde ai copiat sistem-ul apare? daca da inseamna ca nai copiat tutul cum trb normal ar trebuii sa gasesti codurile la OnPlayerEnterVehicle vezi pe acolo :)

Samp.OnlyPro.ro - RolePlay - Join Us !

Posted

tot nu merge... si pe gm-ul celalalt de pe care copiez merge perfect.

Deci:

Aici e OnPlayerEnterVehicle de unde am copiat

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
	{
		if (IsACopCar(vehicleid) && !ispassenger)
		{
			if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {}
		    else {
				//WantedPoints[playerid]+=2;
				//SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
				new Float:cx, Float:cy, Float:cz;
				GetPlayerPos(playerid, cx, cy, cz);
				SetPlayerPos(playerid, cx,  cy, cz);
			}
		}
		if (IsNgCar(vehicleid) && !ispassenger)
		{
		    if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {}
		    else {
				//WantedPoints[playerid]+=2;
				//SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
				new Float:cx, Float:cy, Float:cz;
				GetPlayerPos(playerid, cx, cy, cz);
				SetPlayerPos(playerid, cx,  cy, cz);
			}
		}
		if (IsAnAmbulance(vehicleid) && !ispassenger)
		{
		    if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { }
		    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Stealing An Ambulance"); }
		}
		if (IsATank(vehicleid) && !ispassenger)
		{
			if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==3) {}
		    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Stealing A Tank"); SendClientMessage(playerid, COLOR_GREY,"You don't know how to drive it yet."); }
		}
		if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)
		{
		    if(PlayerInfo[playerid][pAdmin] >= 5 && AdminDuty[playerid] == 1) { }
		    else
		    {
		    	new Float:cx, Float:cy, Float:cz;
		    	GetPlayerPos(playerid, cx, cy, cz);
		    	SetPlayerPos(playerid, cx, cy, cz);
			}
		}
		if(IsAnOwnableBike(vehicleid) && BikeInfo[vehicleid][bkLock] == 1 && BikeInfo[vehicleid][bkOwned] == 1)
		{
		    if(PlayerInfo[playerid][pAdmin] >= 5 && AdminDuty[playerid] == 1) { }
		    else
		    {
		    	new Float:cx, Float:cy, Float:cz;
		    	GetPlayerPos(playerid, cx, cy, cz);
		    	SetPlayerPos(playerid, cx, cy, cz);
			}
		}
	}
	return 1;
}
Iar aici e unde lam copiat:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
	{
		if (IsACopCar(vehicleid) && !ispassenger)
		{
			if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pLeader]==17||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pMember]==17) {}
		    else {
				new Float:cx, Float:cy, Float:cz;
				GetPlayerPos(playerid, cx, cy, cz);
				SetPlayerPos(playerid, cx,  cy, cz);
			}
		}
		if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)
		{
		    if(PlayerInfo[playerid][pAdmin] >= 5 && AdminDuty[playerid] == 1) { }
		    else
		    {
		    	new Float:cx, Float:cy, Float:cz;
		    	GetPlayerPos(playerid, cx, cy, cz);
		    	SetPlayerPos(playerid, cx, cy, cz);
			}
		}
	}
	return 1;
}

Posted

Ma trebuie sa copiezi doar ce e legat de sistem nu si ce este in + ca asa o sa iti strici gm-ul,daca nici sa copiezi nu esti in stare...nush prea mute legate de sistem-ul asta ca nu ma interesat eu ti-am zis unde sa cauti acum tine de tine ce faci in continuare...

Samp.OnlyPro.ro - RolePlay - Join Us !

Posted

Ma... eu cand eram incepator si copiam si eu din alte gm-uri,dupa ce il copiam,mai verificam odata,incearca sa copiezi de acum in colo cu notepad++ ca acolo cand dai Find ai si o optiune sa iti caute toate linile cu acel cuvant incearca asa....poate iti este mai usor

Samp.OnlyPro.ro - RolePlay - Join Us !

Posted

Mda mersi am rezolvat Ch1nezule lasate de samp scripting si dute dracu la mario

Warn 10%, limbaj + insulte.

Posteaza in Probleme Godfather.

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.