CaraVan DealerShip help
#1

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)
Reply
#2

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

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


READ PEOPLE READ !!! I SWEAR IT HELPS !!!
Reply
#3

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

Do a loop.
Reply
#5

dont know how
Reply
#6

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
Reply
#7

Read This.
Reply
#8

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 )
Reply
#9

fux i was commenting Batad not u blood
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)