Dealership
#1

Hello people, I am editing a script to other location and I moved the dealership to other coordinates, that worked fine but when I buy the car it appears on the old location and I don't know how to change that, I don't know for what paragraph I have to search for to change its location.

Thank you !
Reply
#2

What do you have to do to buy cars?
If you have to send a command, then check the command ed edit the line
Код:
CreateVehicle(modelid, X, Y, Z, Angle, Color1, Color2, respawn);
And edit the line with the vehicle model ID,
X, Y, Z, Angle the new coordinates,
Color1, Color2, the colors of the car
RespawnTime The seconds after the vehicle is left by the driver to auto-respawn
Reply
#3

Can you show us your whole code where you buy the car please? We will be able to help you.
Reply
#4

This is how the code looks

Код:
CMD:buycar(playerid, params[])
{
	new string[128];
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
	if(!IsPlayerInRangeOfPoint(playerid, 2, -2222.2407,-2312.1375,30.6024)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the vehicles dealership.");
	//if(PlayerInfo[playerid][pVIP] >= 2)
	//{
		if(PlayerInfo[playerid][vModel] && PlayerInfo[playerid][vVModel] && PlayerInfo[playerid][vVVModel])
		{
			format(string, sizeof(string), "You already own vehicles ID %d and %d and %d.", PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVVeh], PlayerInfo[playerid][pVVVeh]);
			SendClientMessage(playerid, COLOR_GREY, string);
		    return 1;
		}
		else SSSShowDialog(playerid, 10);
	    return 1;
	/*}
	if(PlayerInfo[playerid][vModel])
	{
		format(string, sizeof(string), "You already own vehicle ID %d.", PlayerInfo[playerid][pVeh]);
		SendClientMessage(playerid, COLOR_GREY, string);
	    return 1;
	}
	SSSShowDialog(playerid, 10);
	return 1;*/
}
Reply
#5

can you help me? there is the code.
Reply
#6

I need to see the code where it spawns the car, hey listen upload your whole script to pastebin so we can get a better view at it and help you out!
Reply
#7

That's the problem, I don't know which is the line where the car has to spawn, that's what I tried to find, and on what I am editing its a whole gamemode, And I don't know for what to search for either.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)