17.08.2010, 23:14
(
Последний раз редактировалось Hero_Of_War; 17.08.2010 в 23:28.
)
Hello this is a filter script that Teleports you in to a plane so you can skydive out of it..
Ok so when you jump out the plane you get Teleported into the air above a set Player Posed The one in the example will take you to above Dry lake but you can make it so it Teleports any wary you like
example
How do i make one for me?
Its easy all you need is a way to get to your pos. Ok what i do is spawn a helicopter and go up to wear i want to have my player spawn when he jumps out the plane and use /save
How to get the saves
Now all we need is to get the /save for some people it will be in:
and for some it will be in:
Now we put that in the script
So open savedpositions It will look like
AddPlayerClass(292,735.2139,-1345.7798,13.5156,265.1739,0,0,0,0,0,0);
We need the X Y Z coordinates
AddPlayerClass(292,735.2139, -1345.7798,13.5156,265.1739,0,0,0,0,0,0);
So copy that and paste it in to
Now for the message
Put your message
The time you want the text to display for in milliseconds
The style you want to show the text in.
The colour of you text
https://sampwiki.blast.hk/wiki/GameTextStyle
Download:
http://pastebin.com/8caQfG04
Ok so when you jump out the plane you get Teleported into the air above a set Player Posed The one in the example will take you to above Dry lake but you can make it so it Teleports any wary you like
example
Код:
if(strcmp(cmdtext, "/skydive", true) == 0){ SetPlayerInterior(playerid,9); { GivePlayerWeapon(playerid, 46, 1);} SetPlayerPos(playerid,315.97, 987.59, 1958.31);} return 1;} public OnPlayerConnect(playerid) { SetPlayerCheckpoint(playerid, 315.81,1031.91,1946.95, 5.0); return 1; } public OnPlayerEnterCheckpoint(playerid) { SetPlayerInterior(playerid,0); { SetPlayerPos(playerid,-5.82, 1475.93, 825.87);} GameTextForPlayer(playerid,"~W~DRYLAKE DIVE",2500,0);} public OnGameModeInit() { return 1; }
Its easy all you need is a way to get to your pos. Ok what i do is spawn a helicopter and go up to wear i want to have my player spawn when he jumps out the plane and use /save
How to get the saves
Now all we need is to get the /save for some people it will be in:
Код:
C:\Program Files\Rockstar Games\GTA San Andreas
Код:
C:\Users\<Your PC Name>\AppData\Local\VirtualStore\Program Files\Rockstar Games
So open savedpositions It will look like
AddPlayerClass(292,735.2139,-1345.7798,13.5156,265.1739,0,0,0,0,0,0);
We need the X Y Z coordinates
AddPlayerClass(292,735.2139, -1345.7798,13.5156,265.1739,0,0,0,0,0,0);
So copy that and paste it in to
Код:
if(strcmp(cmdtext, "/skydive", true) == 0){ SetPlayerInterior(playerid,9); { GivePlayerWeapon(playerid, 46, 1);} SetPlayerPos(playerid,315.97, 987.59, 1958.31);} return 1;} public OnPlayerConnect(playerid) { SetPlayerCheckpoint(playerid, X,Y,Z); return 1; } public OnPlayerEnterCheckpoint(playerid) { SetPlayerInterior(playerid,0); { SetPlayerPos(playerid,-5.82, 1475.93, 825.87);} GameTextForPlayer(playerid,"~W~DRYLAKE DIVE",2500,0);} public OnGameModeInit() { return 1; }
Put your message
The time you want the text to display for in milliseconds
The style you want to show the text in.
The colour of you text
https://sampwiki.blast.hk/wiki/GameTextStyle
Код:
GameTextForPlayer(playerid,"~W~ Your Message ",2500,0);}
http://pastebin.com/8caQfG04