SA-MP Forums

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

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

[ame]http://www.youtube.com/watch?v=_XDMT-bDkZM[/ame]

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:

[ame]http://www.youtube.com/watch?v=-T_X7Y1s7rI[/ame]

Last edited by MP2; 26/03/2012 at 05:28 PM.
MP2 is offline   Reply With Quote
Old 26/03/2012, 05:00 AM   #2
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,130
Reputation: 450
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.
Kar is offline   Reply With Quote
Old 26/03/2012, 05:04 AM   #3
Mark_Weston
High-roller
 
Mark_Weston's Avatar
 
Join Date: Aug 2010
Location: Winnipeg, Manitoba, Canada
Posts: 1,024
Reputation: 67
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
Mark_Weston is offline   Reply With Quote
Old 26/03/2012, 05:05 AM   #4
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,420
Reputation: 968
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
MP2 is offline   Reply With Quote
Old 26/03/2012, 05:37 AM   #5
ReneG
High-roller
 
Join Date: Oct 2011
Location: Sublime Text 2
Posts: 1,987
Reputation: 337
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, 07:48 AM   #6
Kyle
High-roller
 
Kyle's Avatar
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 2,388
Reputation: 310
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.
Kyle is offline   Reply With Quote
Old 26/03/2012, 08:07 AM   #7
Ronaldo_raul™
High-roller
 
Ronaldo_raul™'s Avatar
 
Join Date: Jun 2010
Location: .
Posts: 1,014
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, 08:25 AM   #8
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 4,279
Reputation: 1115
Default Re: Textdraw keypad using 0.3e SelectTextDraw!

That's unique! Nice job!
__________________


Join the best Cops And Robbers in SA-MP, today. svr.irresistiblegaming.com:7777
Lorenc_ is offline   Reply With Quote
Old 26/03/2012, 11:27 AM   #9
Rac3r
Gangsta
 
Join Date: May 2007
Posts: 683
Reputation: 37
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, 02:19 PM   #10
Johann95
Huge Clucker
 
Join Date: Nov 2010
Location: Austria - Niederösterreich
Posts: 421
Reputation: 11
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 09: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 04:46 PM
Help with gate(keypad).. GBLTeam Help Archive 1 02/05/2011 01:27 PM
[Help] Using a Keypad With Enter I own all Help Archive 2 16/05/2009 11:22 PM


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


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