[FilterScript] Fun Dive
#1

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
Код:
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;
}
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:
Код:
C:\Program Files\Rockstar Games\GTA San Andreas
and for some it will be in:
Код:
C:\Users\<Your PC Name>\AppData\Local\VirtualStore\Program Files\Rockstar Games
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
Код:
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;
}
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
Код:
 GameTextForPlayer(playerid,"~W~ Your Message ",2500,0);}
Download:
http://pastebin.com/8caQfG04
Reply


Messages In This Thread
Fun Dive - by Hero_Of_War - 17.08.2010, 23:14
Re: Fun Dive - by willsuckformoney - 18.08.2010, 01:33

Forum Jump:


Users browsing this thread: 1 Guest(s)