Raised This Month: $ Target: $400
 0% 

how can i get input like hud message?


Post New Thread Reply   
 
Thread Tools Display Modes
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-06-2012 , 17:52   Re: how can i get input like hud message?
Reply With Quote #11

Quote:
Originally Posted by Santaaa View Post
Yeah, he asked if it is possible to check for the winning team, yes you can. But there isnt a spececfic function for that.
You misread my post, my answers to each quote are below it.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Santaaa
BANNED
Join Date: May 2012
Old 07-06-2012 , 17:53   Re: how can i get input like hud message?
Reply With Quote #12

Ooh damn, sorry mate
Santaaa is offline
mi1s0n
Junior Member
Join Date: Jun 2012
Old 07-07-2012 , 00:05   Re: how can i get input like hud message?
Reply With Quote #13

So what i have to do to check for the winning team?(Except search!)

Last edited by mi1s0n; 07-07-2012 at 00:07.
mi1s0n is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-07-2012 , 00:19   Re: how can i get input like hud message?
Reply With Quote #14

Quote:
Originally Posted by mi1s0n View Post
So what i have to do to check for the winning team?(Except search!)
Because i had problems finding it through search i'll give it to you.
But in the future, you can learn much more by reading people's code that has functionality in it. That's how i personally got this answer.

PHP Code:
// Thanks snow for these events in your Mod Points plugin. 
        //    http://forums.alliedmods.net/showthread.php?p=717780
    
register_event("SendAudio""event_CTvictory""a""2=%!MRAD_ctwin")
    
register_event("SendAudio""event_Tvictory""a""2=%!MRAD_terwin"
not sure if this is the best way of doing it. But it sure as hell works.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
mi1s0n
Junior Member
Join Date: Jun 2012
Old 07-07-2012 , 00:35   Re: how can i get input like hud message?
Reply With Quote #15

thanx Liverwix, Yeah I perefer to search rather than ask questions
If there was a way to get user message on screen(NOT in console OR messagemode) it'll be great I've searched a lot but found nothing YamiKaiuto says its not possible but i think i had seen it in a game before I cant remember

Last edited by mi1s0n; 07-07-2012 at 00:37.
mi1s0n is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-07-2012 , 00:40   Re: how can i get input like hud message?
Reply With Quote #16

Quote:
Originally Posted by mi1s0n View Post
thanx Liverwix, Yeah I perefer to search rather than ask questions
If there was a way to get user message on screen(NOT in console OR messagemode) it'll be great I've searched a lot but found nothing YamiKaiuto says its not possible but i think i had seen it in a game before I cant remember
what exactly are you trying to do?
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
mi1s0n
Junior Member
Join Date: Jun 2012
Old 07-07-2012 , 01:02   Re: how can i get input like hud message?
Reply With Quote #17

I want to get username and password at the left of the screen like hudmessages
somthing like this :

Username:
mi1s0n
Password:
123456

is this possible?how?
mi1s0n is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-07-2012 , 01:29   Re: how can i get input like hud message?
Reply With Quote #18

I'd, personally, use console commands. It'll be more secure (and by more i mean only slightly) and it'll be easier.

soemthing like a register_concmd("login", stuffn'things, "login [username] [password])

or you could force clients to type in chat their password. After using their steamID as login credentials and save that in with a corresponding password (encrypted with bugsy's simple encryption)
Actually, that's the way i'd do it. Because then you can have commands to change passwords and things in the file. but you're getting into some pretty advanced stuff.
Or instead of a file use nVault or SQL

but entering a un/pw into a hud message isn't easily possible.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
mi1s0n
Junior Member
Join Date: Jun 2012
Old 07-07-2012 , 01:45   Re: how can i get input like hud message?
Reply With Quote #19

okaaay, it seems i have to use console commands and check usernames in database
thank you very much guys
mi1s0n is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 07-07-2012 , 07:13   Re: how can i get input like hud message?
Reply With Quote #20

Maybe you have seen a menu that uses messagemode to set the values and display them as options.
__________________
<VeCo> is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 08:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode