SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 25/07/2007, 11:51 AM   #11
BeckzyBoi
Beta Tester
 
Join Date: Dec 2006
Posts: 1,683
Reputation: 124
Default Re: [FS] Enter shamal as passenger.

I like it alot, heres some more ideas/notes if you wanna work on it, Im trying but havign a little trouble...
1. it seems like its hard to get in some times, // it runs though OnPlayerEnterVehicle, just be as close to the passenger door as possible.
2. my friend got in while i was driving and he did not disapear from outside. // That is the SA:MP SetPlayerPos bug.
3. my friend got out and i did not see him appear at all. // That is something you are doing wrong then, note if you are flying chances are you wont see him as he will fall to death before you get the chance.
4. if it blows up they dont die // It isn't meant to, if you want it to do so then use CreateExplosion in OnVehicleDeath and create it in the interior.
5. should add a parashoot spawn in it // Can't you do that?
6. there should be like a block so the passengers cant get neat the cockpit, that way they cant see there is no driver in it // Do that yourself using CreateObject.
7. Need to stop respawning if some one is inside // I can't do anything about that, they will respawn if nobody is driving it. Use AddStaticVehicleEx and make the time a lot longer.

--Glitch--
I was flying, got out and hit g to get in back, then got out again and the plane fell, i hit g to get back in, and then when i exited, i was in the air again, but the plane was still on the ground... // SA:MP bug also, GetVehiclePos will always return the last position of where the place was in use. Not if it had fell, rolled, been pushed etc.
__________________
BeckzyBoi is offline   Reply With Quote
Old 26/07/2007, 08:01 AM   #12
dracar
Big Clucker
 
Join Date: Jan 2007
Posts: 52
Reputation: 0
Default Re: [FS] Enter shamal as passenger.

Quote:
Originally Posted by BeckzyBoi
I like it alot, heres some more ideas/notes if you wanna work on it, Im trying but havign a little trouble...
1. it seems like its hard to get in some times, // it runs though OnPlayerEnterVehicle, just be as close to the passenger door as possible.
2. my friend got in while i was driving and he did not disapear from outside. // That is the SA:MP SetPlayerPos bug.
3. my friend got out and i did not see him appear at all. // That is something you are doing wrong then, note if you are flying chances are you wont see him as he will fall to death before you get the chance.
4. if it blows up they dont die // It isn't meant to, if you want it to do so then use CreateExplosion in OnVehicleDeath and create it in the interior.
5. should add a parashoot spawn in it // Can't you do that?
6. there should be like a block so the passengers cant get neat the cockpit, that way they cant see there is no driver in it // Do that yourself using CreateObject.
7. Need to stop respawning if some one is inside // I can't do anything about that, they will respawn if nobody is driving it. Use AddStaticVehicleEx and make the time a lot longer.

--Glitch--
I was flying, got out and hit g to get in back, then got out again and the plane fell, i hit g to get back in, and then when i exited, i was in the air again, but the plane was still on the ground... // SA:MP bug also, GetVehiclePos will always return the last position of where the place was in use. Not if it had fell, rolled, been pushed etc.
1. figured that out
2. i c...
3. yea i was flying lol...
4. trying like hell but still no explosion....
5. AddStaticPickup(371,2,1.716518,31.8657,1199.593750 );
6. done, but kinda ghetto...
7. i guess i will increase its timer...

now im working on the andromada one cause i still cant get this ones explosion to work
dracar is offline   Reply With Quote
Old 27/07/2007, 12:44 PM   #13
Malice
Big Clucker
 
Join Date: Jul 2007
Posts: 110
Reputation: 0
Default Re: [FS] Enter shamal as passenger.

Nice job. Just 1 thing, what does the & in this statement mean? Pawn-lang.pdf says bitwise logical
Code:
newkeys & 16
And what if the Shamal's vehicleid was 0.
Code:
InShamal[playerid]=vehicleid;

InShamal[playerid] > 0
Malice is offline   Reply With Quote
Old 27/07/2007, 11:39 PM   #14
BeckzyBoi
Beta Tester
 
Join Date: Dec 2006
Posts: 1,683
Reputation: 124
Default Re: [FS] Enter shamal as passenger.

Quote:
Originally Posted by Malice
Nice job. Just 1 thing, what does the & in this statement mean? Pawn-lang.pdf says bitwise logical
Code:
newkeys & 16
And what if the Shamal's vehicleid was 0.
Code:
InShamal[playerid]=vehicleid;

InShamal[playerid] > 0
1) It makes sure the player is ONLY pressing key 16 and not key 16 with other keys.
2) There is no such vehicle id as nothing, they start from 1.
__________________
BeckzyBoi is offline   Reply With Quote
Old 28/07/2007, 12:28 AM   #15
JaTochNietDan
High-roller
 
JaTochNietDan's Avatar
 
Join Date: Apr 2007
Location: Republic of Ireland
Posts: 4,250
Reputation: 363
Default Re: [FS] Enter shamal as passenger.

Was going to post something like this, but meh
__________________
Releases:
[Includes]: [jBan] | [jBanLite]
[Plugins]: [FileManager] | [Execute]
[Applications]: [Remote Administrator *NEW] | [Script King] | [RCON GUI]
JaTochNietDan is offline   Reply With Quote
Old 28/07/2007, 12:29 AM   #16
Malice
Big Clucker
 
Join Date: Jul 2007
Posts: 110
Reputation: 0
Default Re: [FS] Enter shamal as passenger.

#1 Ah, I see.
#2 Really? I always though they started from 0.
#3 Thanks for explaining.
#4 Why not '==' ?
Malice is offline   Reply With Quote
Old 28/07/2007, 01:38 AM   #17
BeckzyBoi
Beta Tester
 
Join Date: Dec 2006
Posts: 1,683
Reputation: 124
Default Re: [FS] Enter shamal as passenger.

Quote:
Originally Posted by Malice
#1 Ah, I see.
#2 Really? I always though they started from 0.
#3 Thanks for explaining.
#4 Why not '==' ?
1) Good.
2) Vehicles and Objects have always started from 1.
3) Np.
4) I just told you -_-, == would indeed check if the player is pressing the key you want but the player could also be pressing others. If it means so much to you to have == even though most would prefer & then you do so.
__________________
BeckzyBoi is offline   Reply With Quote
Old 28/07/2007, 02:35 AM   #18
Malice
Big Clucker
 
Join Date: Jul 2007
Posts: 110
Reputation: 0
Default Re: [FS] Enter shamal as passenger.

So much for learning.
Malice is offline   Reply With Quote
Old 28/07/2007, 10:32 AM   #19
Azteca
Little Clucker
 
Join Date: Jun 2007
Posts: 26
Reputation: 0
Default Re: [FS] Enter shamal as passenger.

wow this is ingenious, but i know your probably going to say no but im going to try anyway, i was wondering if you could make a v2 or something, where there would be an explosion in the interior of the aircraft when the vehicle 'dies' along the whole corridor to make sure they die. I know you'll probably say do it myself and thats what i tried to do and i studied those wiki pages for hours trying to figure out how to get it working. But i think ive got a basic understanding of how it works but no idea on how to make anything happen.

The second thing is i was wondering if you could make it play like music inside the interior(something like the music you hear at the spawn locations on different servers) now i've studied this a bit and this looks a little in my range so i think i can accomplish this, but if you get to this first and complete it please let me know so i can yeah... lol, well anyway man beautiful filterscript and you are certainly talented
peace
Azteca is offline   Reply With Quote
Old 28/07/2007, 10:36 AM   #20
dracar
Big Clucker
 
Join Date: Jan 2007
Posts: 52
Reputation: 0
Default Re: [FS] Enter shamal as passenger.

Quote:
Originally Posted by Azteca
wow this is ingenious, but i know your probably going to say no but im going to try anyway, i was wondering if you could make a v2 or something, where there would be an explosion in the interior of the aircraft when the vehicle 'dies' along the whole corridor to make sure they die. I know you'll probably say do it myself and thats what i tried to do and i studied those wiki pages for hours trying to figure out how to get it working. But i think ive got a basic understanding of how it works but no idea on how to make anything happen.

The second thing is i was wondering if you could make it play like music inside the interior(something like the music you hear at the spawn locations on different servers) now i've studied this a bit and this looks a little in my range so i think i can accomplish this, but if you get to this first and complete it please let me know so i can yeah... lol, well anyway man beautiful filterscript and you are certainly talented
peace
hmm you sound like you are around my lvl of coding, i could probably do the music and ive also tried for awhile but cannot get it to explode when it dies or w/e....
dracar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter as passenger. ScIrUsna Scripting Help 0 29/04/2016 06:23 PM
How to have players enter as a passanger in a Shamal and Andromeda? DesertFoxNight Help Archive 3 01/03/2010 05:23 PM
[NPC] SA Pilot **Revamped** (Enter the Shamal!) V1ceC1ty Help Archive 22 15/01/2010 04:21 PM
[SOLVED] shamal enter crashes troy52192 Help Archive 0 28/11/2009 06:15 AM


All times are GMT. The time now is 01:25 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.