Problem with OwnerShip
#1

Ravens / edit Roleplay I have a problem with a car buy a car and restart server in my stats is either a mountain bike or go to one of the vehicles of some organizations but mostly mountain bike ..... If anyone knows a solution, says .... Thanks....Sorry for low english

Код:
//--------CAR_OWNERSHIP_COMMANDS--------------------------------------------
CMD:vehiclehelp(playerid, params[])
{
	if(IsPlayerConnected(playerid))
	{
		if(PlayerInfo[playerid][pCarKey] != 9999 || PlayerInfo[playerid][pCarKey2] != 9999)
		{
			new string[128],sendername[MAX_PLAYER_NAME];
			GetPlayerName(playerid, sendername,sizeof(sendername));
			SCM(playerid, COLOR_GREEN,"________________Vehicle Help________________");
			SCM(playerid, COLOR_GRAD2,"*** VEHICLE *** /v [name] /findcar /carcode");
			SCM(playerid, COLOR_GRAD3,"*** VEHICLE *** Available names: park, lock, sell, sellto, color, find");

			new y, m, d;
			new h,mi,s;
			getdate(y,m,d);
			gettime(h,mi,s);
			format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /vehiclehelp",d,m,y,h,mi,s,sendername);
			CommandLog(string);
			return 1;
		}
		else
		{
			SCM(playerid,COLOR_GRAD2,"** You do not currently own a car! **");
			return 1;
		}
	}
	return 1;
}

CMD:apark(playerid, params[])
{
	if(IsPlayerConnected(playerid))
	{
		new Float:x,Float:y,Float:z;
		new Float:a,string[128];
		new carid = GetPlayerVehicleID(playerid);
		GetVehiclePos(carid, x, y, z);
		GetVehicleZAngle(carid, a);
		if(PlayerInfo[playerid][Admin] >= 5)
		{
			if(IsAnOwnableCar(carid))
			{
				CarInfo[carid][cLocationx] = x;
				CarInfo[carid][cLocationy] = y;
				CarInfo[carid][cLocationz] = z;
				CarInfo[carid][cAngle] = a;
				format(string, sizeof(string), "~n~ Parkirali ste vozilo na ovoj poziciji. ~n~");
				GameTextForPlayer(playerid, "Parkirali ste ova kola na ovoj poziciji. Ovde ce se respawnovati.", 10000, 3);
				OnPropUpdate(4,carid);
				OnPlayerUpdateEx(playerid);
				DestroyVehicle(carid);
				ownedcar[carid] = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
				if(CarInfo[carid][cPaintjob] != 999)
				{
					ChangeVehiclePaintjob(carid, CarInfo[carid][cPaintjob]);
				}
				SetVehicleVirtualWorld(carid, CarInfo[carid][cVirWorld]);
				SetVehicleModifications(carid);
				LegalGetIn[playerid] = 1;
				PutPlayerInVehicle(playerid, carid, 0);
				return 1;
			}
			else
			{
				SCM(playerid, COLOR_GREY, "* Ovo mozete uraditi samo sa kolima koja su na /v!");
				return 1;
			}
		}
		else
		{
			SCM(playerid, COLOR_GREY, "* Niste ovlasceni da koristite ovu komandu!");
			return 1;
		}
	}
	return 1;
}
CMD:park(playerid, params[])
{
	if(IsPlayerConnected(playerid))
	{
		new Float:x,Float:y,Float:z;
		new Float:a,string[128];
		new carid = GetPlayerVehicleID(playerid);
		GetVehiclePos(carid, x, y, z);
		GetVehicleZAngle(carid, a);
		if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
		{
			if(IsPlayerInRangeOfPoint(playerid, 70,1251.7888,-1818.8201,13.4089))
			{
				if(IsAnOwnableCar(carid))
				{
					CarInfo[carid][cLocationx] = x;
					CarInfo[carid][cLocationy] = y;
					CarInfo[carid][cLocationz] = z;
					CarInfo[carid][cAngle] = a;
					CarInfo[carid][cKazna] = 1;
					engineOn[carid] = 0;
					gEngine[playerid] = 0;
					format(string, sizeof(string), "~n~ Parkirali ste vozilo na ovoj poziciji. ~n~");
					GameTextForPlayer(playerid, "Parkirali ste ova kola na ovoj poziciji. Ovde ce se respawnovati.", 10000, 3);
					OnPropUpdate(4,carid);
					OnPlayerUpdateEx(playerid);
					DestroyVehicle(carid);
					ownedcar[carid] = AddStaticVehicleEx(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
					if(CarInfo[carid][cPaintjob] != 999)
					{
						ChangeVehiclePaintjob(carid, CarInfo[carid][cPaintjob]);
					}
					SetVehicleVirtualWorld(carid, CarInfo[carid][cVirWorld]);
					SetVehicleModifications(carid);
					return 1;
				}
				else
				{
					SCM(playerid, COLOR_GREY, "* Ovo mozete uraditi samo sa kolima koja su na /v!");
					return 1;
				}
			}
			else
			{
				SCM(playerid, COLOR_GREY, "* Niste u parking servis bazi!");
				return 1;
			}
		}
		else
		{
			SCM(playerid, COLOR_GREY, "* Niste ovlasceni da koristite ovu komandu!");
			return 1;
		}
	}
	return 1;
}
//--------END_CAR_OWNERSHIP_COMMANDS----------------------------------------
Reply
#2

I can offer the best solution ever. Get rid of Ravens Roleplay. That is the worst script on this forums, you're better off using an NGRP edit. Lol.
Reply
#3

haha no. Raven's is the best GM....
Reply
#4

Quote:
Originally Posted by Sremke
Посмотреть сообщение
haha no. Raven's is the best GM....
Agreed! Highfive!.

Anyways, Car System is totally fucked up on Ravens so. Better off remaking a whole new Car System. Sorry.
Reply
#5

bump!
Reply
#6

Try Remaking or putting another ownership system
and the code which you have given is not full!
Reply
#7

bump!
Reply
#8

This is GM if someone can fix it. Thanks Alot
http://www.mediafire.com/?3pe5nxp0q71m2pm
Reply
#9

Quote:
Originally Posted by Sremke
Посмотреть сообщение
haha no. Raven's is the best GM....
Raven's isn't worth a ball of shit hanging off my ass hair.
Reply
#10

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Raven's isn't worth a ball of shit hanging off my ass hair.
ok ty for spoiling my sandwich.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)