SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Screenshots and Videos

Reply
 
Thread Tools Display Modes
Old 26/03/2012, 03:32 AM   #1
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,325
Reputation: 895
Default Textdraw keypad using 0.3e SelectTextDraw!


Made in about 20 minutes, not that hard really.
23 textdraws (10 numbers, 10 number boxes, red and green box and background).
I plan to make the red box flash when you get it wrong and the green one light up when you get it right, it's pretty basic at the minute. I may even release this as an include. I already made CreateKeypad(playerid) and DestroyKeypad(playerid). It will be:

CreateKeypad(playerid, key[]);
DestroyKeypad(playerid);

public OnPlayerKeypadInput(playerid, type, number)
type:
#define KEYPAD_INPUT_DIGIT
#define KEYPAD_INPUT_SUCCESS
#define KEYPAD_INPUT_FAIL

number would be the number (if KEYPAD_INPUT_DIGIT) or -1.

Would be pretty cool for some servers.


EDIT - 26/03/2012 17:37 GMT: The green and red boxes now light up after input:

__________________
>> Click here to see my releases.

Please do not PM me requesting help. Here you have a forum with 11,000+ active users - why are you limiting your help to one person?

Last edited by MP2; 26/03/2012 at 04:28 PM.
MP2 is offline   Reply With Quote
Old 26/03/2012, 04:00 AM   #2
Kar
High-roller
 
Join Date: May 2010
Location: Black Asylum
Posts: 2,879
Reputation: 280
Default Re: Textdraw keypad using 0.3e SelectTextDraw!

Audio streams or audioevents used for sounds?

Now the iPhone can be successfully re-created in sa-mp! haha.

Nice Job.
__________________

  • Twisted Metal's Website & Forums are up! http://tm.lvcnr.net

    Are you prepared to get your wish? Twisted Metal SA-MP is coming soon! Join the IRC Channel: #tm on irc.tl - @tmsamp_dev

server.lvcnr.net:7777 | samp://server.lvcnr.net:7777
www.lvcnr.net | @kcnrdev
Channel: #lvcnr on irc.tl
Kar is offline   Reply With Quote
Old 26/03/2012, 04:04 AM   #3
Mark_Weston
Gangsta
 
Mark_Weston's Avatar
 
Join Date: Aug 2010
Location: Winnipeg, Manitoba, Canada
Posts: 920
Reputation: 64
Default Re: Textdraw keypad using 0.3e SelectTextDraw!

Quote:
Originally Posted by Kar View Post
Audio streams or audioevents used for sounds?

Now the iPhone can be successfully re-created in sa-mp! haha.

Nice Job.
Also useful for keypads like PD, Houses, Safes etc
__________________

Ryan Frankenberger,
Founder and Community Director,
Instant Gaming.
[FORUMS ARE UP]
Mark_Weston is offline   Reply With Quote
Old 26/03/2012, 04:05 AM   #4
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,325
Reputation: 895
Default Re: Textdraw keypad using 0.3e SelectTextDraw!

Quote:
Originally Posted by Kar View Post
Audio streams or audioevents used for sounds?
SOUND__KEYPAD_BEEP 21000

SOUND__KEYPAD_FAIL 21001

SOUND__KEYPAD_PASS 21002

:P
__________________
>> Click here to see my releases.

Please do not PM me requesting help. Here you have a forum with 11,000+ active users - why are you limiting your help to one person?
MP2 is offline   Reply With Quote
Old 26/03/2012, 04:37 AM   #5
ReneG
High-roller
 
Join Date: Oct 2011
Location: Sublime Text 2
Posts: 2,006
Reputation: 333
Default Re: Textdraw keypad using 0.3e SelectTextDraw!

I mean this as hetero-sexual as possible, but I really admire you, and the work you've been doing with SAMP 0.3e. It's very creative, and it's just very neat to see someone doing something clever. Kudos to you! (:
ReneG is offline   Reply With Quote
Old 26/03/2012, 06:48 AM   #6
KyleSmith
High-roller
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 2,171
Reputation: 242
Default Re: Textdraw keypad using 0.3e SelectTextDraw!

Wow, this is great. I'd love to encouporate this somehow in my server when I got time.

Nice one.
KyleSmith is online now   Reply With Quote
Old 26/03/2012, 07:07 AM   #7
Ronaldo_raul™
High-roller
 
Ronaldo_raul™'s Avatar
 
Join Date: Jun 2010
Location: Gujarat, India.
Posts: 1,105
Reputation: 67
Default Re: Textdraw keypad using 0.3e SelectTextDraw!

WoW!


You won't be releasing this ? uh ?

Great Work.
Ronaldo_raul™ is offline   Reply With Quote
Old 26/03/2012, 07:25 AM   #8
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 4,116
Reputation: 904
Default Re: Textdraw keypad using 0.3e SelectTextDraw!

That's unique! Nice job!
__________________

192.169.82.202:7777 - An awesome CnR server consisting of doozy features! Come, we have players!


Lorenc_ is offline   Reply With Quote
Old 26/03/2012, 10:27 AM   #9
Rac3r
Gangsta
 
Join Date: May 2007
Posts: 700
Reputation: 32
Default Re: Textdraw keypad using 0.3e SelectTextDraw!

Simple ("Made in about 20 minutes, not that hard really), but really good use of the new clickable textdraws!

Nice upload.
Rac3r is offline   Reply With Quote
Old 26/03/2012, 01:19 PM   #10
Johann95
Huge Clucker
 
Join Date: Nov 2010
Location: Austria - Niederösterreich
Posts: 422
Reputation: 10
Default AW: Textdraw keypad using 0.3e SelectTextDraw!

Very Cool
Can you Please Make a Tutorial for This ?
I Need This
Greetings from me
Johann95 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
SelectTextDraw issues MP2 Scripting Help 19 21/03/2012 08:07 AM
KeyPad Problem [HELP] Sting. Scripting Help 7 01/01/2012 06:35 PM
Door and Keypad. Sting. Scripting Help 8 17/09/2011 03:46 PM
Help with gate(keypad).. GBLTeam Help Archive 1 02/05/2011 12:27 PM
[Help] Using a Keypad With Enter I own all Help Archive 2 16/05/2009 10:22 PM


All times are GMT. The time now is 11:31 AM.


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