SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 19/10/2019, 12:51 PM   #1
Yukie
Big Clucker
 
Yukie's Avatar
 
Join Date: Nov 2016
Location: Somewhere in PHILIPPINES
Posts: 89
Reputation: 0
Default Dialog password

Is it possible to use DIALOG_STYLE_PASSWORD for gate system??
__________________

Discord: Yukie#5995|FB: @ichaaaannn
Paradox Roleplay
samp.paradox-rp.ml
Yukie is offline   Reply With Quote
Old 19/10/2019, 12:53 PM   #2
Fuzzy
Big Clucker
 
Join Date: May 2019
Posts: 81
Reputation: 0
Default Re: Dialog password

Do you mean to open a gate by using a password in dialog? if you do, so yes.
__________________
My Releases:
Tutorial:
Gamemode:
Fuzzy is online now   Reply With Quote
Old 19/10/2019, 02:19 PM   #3
WalkZ
Big Clucker
 
WalkZ's Avatar
 
Join Date: Oct 2019
Location: Pakistan
Posts: 86
Reputation: 4
Default Re: Dialog password

It is possible and in very easy way like under OnPlayerUpdate check if player is in range point of your gate and if they are in area show them dialog and under OnDialogResponse simply check if entered password is correct and if its correct just simply open the gate

https://wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint
https://wiki.sa-mp.com/wiki/ShowPlayerDialog
https://wiki.sa-mp.com/wiki/OnDialogResponse
WalkZ is offline   Reply With Quote
Old 19/10/2019, 11:19 PM   #4
Luis-
High-roller
 
Luis-'s Avatar
 
Join Date: Jan 2010
Location: England
Posts: 3,917
Reputation: 391
Default Re: Dialog password

I wouldnt use On Player Update, not very efficient.
__________________
Luis- is offline   Reply With Quote
Old 20/10/2019, 09:47 AM   #5
WalkZ
Big Clucker
 
WalkZ's Avatar
 
Join Date: Oct 2019
Location: Pakistan
Posts: 86
Reputation: 4
Default Re: Dialog password

Quote:
Originally Posted by Luis- View Post
I wouldnt use On Player Update, not very efficient.
I agree with you, it can be done with Timers also.
__________________
[EN] Chinatown Freeroam [BETA]
- Different Advanced Deathmatches with Times and Scores
- Different Races
- Different Events
- Gangs (Groves, Ballas, Aztecas, Mafia, Bikers & Triads)
- Drugs with Drug Dealers at Streets
- Hitman Bounty System
- Ammunations, Pizza Stacks, Burger-Shots, Banks
- Jobs (Pizza-Boy, Plumber, Trasher, Bus)
- Money-Bag every 30 minutes
- Reaction Test every 15 minutes
- Daily improving by adding new features and fixing present bugs.
WalkZ is offline   Reply With Quote
Old 20/10/2019, 12:54 PM   #6
Nero_3D
High-roller
 
Nero_3D's Avatar
 
Join Date: Jun 2007
Location: Germany
Posts: 2,831
Reputation: 666
Default Re: Dialog password

If he wants a password he could also add a keypad object and use OnPlayerKeyStateChange but anyway the answer to his question was simply yes, it is possible.
Nero_3D 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
Password Dialog JasonRiggs Scripting Help 13 09/01/2018 12:33 PM
[DIALOG]How i Create A dialog Whent Player Login To Enter in Dialog The Password donhu789 Scripting Help 8 29/09/2013 08:15 AM
Password Dialog Box Android0504 Scripting Help 2 04/02/2012 01:28 PM
Default Password Dialog Davman Scripting Help 2 15/01/2012 08:38 PM
Need help with Password Dialog und3rcore Scripting Help 2 27/12/2011 11:16 PM


All times are GMT. The time now is 09:16 PM.


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