Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: husnainali9999 on November 23, 2012, 06:53:13 pm

Title: Plz help me
Post by: husnainali9999 on November 23, 2012, 06:53:13 pm
Anyone can tell me how to change Spawn Loc plz tell me i am new in PAWN scripting
Title: Re: Plz help me
Post by: dynavolt71 on November 24, 2012, 05:48:23 am
You Need Coordinates.
Title: Re: Plz help me
Post by: NeskWriter on November 24, 2012, 11:20:51 am
tell us more info about your problem
Title: Re: Plz help me
Post by: husnainali9999 on November 24, 2012, 01:13:57 pm
i Want to Change Player Spawn Loc plz tell me i WAnt to Spawn Player in Malibu Club
Title: Re: Plz help me
Post by: sseebbyy on November 24, 2012, 05:43:49 pm
1. Save the coords ( with "/s" command ) of Malibu Club.
2. Change the 3rd, 4th, 5th and 6th parameter from "AddPlayerClassEx" with coords saved by "/s" cmd.
3. Compile the script.
4. Voila ! You will be spawned at Malibu Club.


E.g.:

These are Malibu coords saved by "/s" command in "vc-mp_saved_coords.txt" from Vice City Directory.
Quote
Class = 0 0 485.8751 -85.7629 11.4839 334.6029 0 0 0 0 0 0 ;

You have to add these coords in "AddPlayerClassEx" function:
Quote
AddPlayerClassEx( 1 , 6 , 485.8751 , -85.7629 , 11. 4839 , 334.6029 , 0 , 0 , 0 , 0 , 0 , 0 );

Legend:
Quote
Blue text: X coord, 3rd coord.
Green text: Y coord, 4th coord.
Red text: Z coord, 5th coord.
Orange text: Angle coord, 6th coord.


Thats all.