SA-MP Forums Archive
CaraVan DealerShip help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: CaraVan DealerShip help (/showthread.php?tid=277856)



Caravan Dealership help - Zonoya - 19.08.2011

Ok So Guys i made a caravan dealership but when u buy it u can buy it anywhere and i dont want that i want it to be at the cords (Cords and code below) and i want it to attach to ANY car but i can only get it to attach to the landstalker i had to define in the script so i need ur help to correct my script for me

Код:
under #include <a_samp>

new C1;
new CC1;

then under OnPlayerCommandText;

		if(strcmp(cmdtext,"/BC", true) == 0)
		{
		    if(IsPlayerInRangeOfPoint(playerid, 1.00, 311.23, -1809.30, 3.48))
		    AttachObjectToVehicle(C1, CC1, 0, -7, -1.3, 0, 0, 0);
		    SendClientMessage(playerid, Yellow,"You Have Brought A Caravan For $5000");
		    GivePlayerMoney(playerid, -5000);
		    return 1;
		}
                return 1;
}

under OnGameModeInti();

    C1 = CreateObject(3175, 311.23, -1809.30, 3.48,   0.00, 0.00, 0.00);
    CC1 = CreateVehicle(400, 562.4244, -1392.7576, 14.8738, 0.0000, -1, -1, 100);
im having alot of problems with this script

1. I Can Buy My Caravan ANYWHERE.
2. it only attaches to the landstalker.
3. i want it to attach to ANY Car but it wont .

I Hope Someone Can Help
Regards
[Nuclear]Phoebe

(P.S. AnyOne Can Use This Script as long as i get credits)


Re: CaraVan DealerShip help - =WoR=G4M3Ov3r - 19.08.2011

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint

https://sampwiki.blast.hk/wiki/AttachObjectToVehicle


READ PEOPLE READ !!! I SWEAR IT HELPS !!!


Re: CaraVan DealerShip help - Zonoya - 19.08.2011

hmm hey dude im trying to get it on ANY Car Not Just a selected one


Re: CaraVan DealerShip help - [MWR]Blood - 19.08.2011

Do a loop.


Re: CaraVan DealerShip help - Zonoya - 19.08.2011

dont know how


Re: CaraVan DealerShip help - =WoR=G4M3Ov3r - 19.08.2011

Quote:
Originally Posted by [Nuclear]Phoebe
Посмотреть сообщение
hmm hey dude im trying to get it on ANY Car Not Just a selected one
As i said, Read the wikis, They'll help you


Re: CaraVan DealerShip help - [MWR]Blood - 19.08.2011

Read This.


Re: CaraVan DealerShip help - Zonoya - 19.08.2011

I DID but thats attach a object to a SELECTED Vehicle Not the vehicle ur in

(P.S. This forum requires that you wait 120 seconds between posts. Please try again in 1 second. that pisses me off )


Re: CaraVan DealerShip help - Zonoya - 19.08.2011

fux i was commenting Batad not u blood


Re: CaraVan DealerShip help - Zonoya - 19.08.2011

ok i looked at it but this isn't a FS its intergrated into my gamemode and i dont get how ur page can help me delux