Raised This Month: $32 Target: $400
 8% 

Who is driving?


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-08-2009 , 15:13   Who is driving?
Reply With Quote #1

Who Is Driving?

Description:

- When someone is driving, it show a hud message with funny texts and sounds...
- Something like this i found here http://forums.alliedmods.net/showthread.php?p=54971


Cvars:

- wid_on 1 - enabled / 0 - disabled
- wid_hudtime 8.0 - set the hudtime duration on screen


NOTE:

- This plugin is just for fun! I don't say will be usefull


Images:


[IMG]http://img98.**************/img98/35/35446538.th.png[/IMG] [IMG]http://img17.**************/img17/2087/71001972.th.png[/IMG] [IMG]http://img401.**************/img401/4789/39744925.th.png[/IMG]


Attached Files
File Type: sma Get Plugin or Get Source (who_is_driving.sma - 1425 views - 1.6 KB)
__________________

Last edited by tuty; 02-28-2012 at 11:34.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-08-2009 , 15:18   Re: Who is driving?
Reply With Quote #2

I think its funny.

About the code:

Can't you CheckWhoIsDriving inside a hook to the use func?

Check Connor's plugin http://forums.alliedmods.net/showthread.php?t=87221

Also: change random(255) to random(256)
__________________

Last edited by joaquimandrade; 03-08-2009 at 15:21.
joaquimandrade is offline
prabalgarina
Senior Member
Join Date: Mar 2009
Old 03-08-2009 , 15:23   Re: Who is driving?
Reply With Quote #3

Xax i think it's cool
You can think even more funy text... a will see the code and edit it for my self.
+karma and will we wait for approve
prabalgarina is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-08-2009 , 15:24   Re: Who is driving?
Reply With Quote #4

Have you trained this on ents like train on fun_rollercoaster ?
May flood the server.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-08-2009 , 15:24   Re: Who is driving?
Reply With Quote #5

Haha nice, like it.
BOYSplayCS is offline
M1R0n,M'
Senior Member
Join Date: Jan 2009
Location: Lithuania
Old 03-08-2009 , 15:25   Re: Who is driving?
Reply With Quote #6

funny plugin..
__________________
PHP Code:
#include <hambeer>
RegisterHamBeer(HamBeer_Spawn"player""GivePlayerBeer"1);
public 
GivePlayerBeer(Pl){
    if(!
is_user_alive(Pl)){
        
ham_give_beer(Pl5)
        
client_print(Plprint_chat"Go Go Go"){

M1R0n,M' is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-08-2009 , 15:35   Re: Who is driving?
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Have you trained this on ents like train on fun_rollercoaster ?
May flood the server.
not everybody use fun_rollercoaster

anyway... i think not because not all the time peoples play on fun maps or maps with cars...
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-08-2009 , 16:08   Re: Who is driving?
Reply With Quote #8

You could hook Ham_Use with classname func_vehicle but it's call as long as the player is driving.
You also could hook Ham_OnControls instead with the same classname, this one is called at the 1rst use.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-08-2009 , 16:13   Re: Who is driving?
Reply With Quote #9

Code:
Also: change   random(255) to   random(256)
why?

Quote:
Originally Posted by ConnorMcLeod View Post
You could hook Ham_Use with classname func_vehicle but it's call as long as the player is driving.
You also could hook Ham_OnControls instead with the same classname, this one is called at the 1rst use.

i would like to use ham but in ham i don't have enough skill... i don't know so much about ham... can u give me some informations or help?
__________________

Last edited by tuty; 03-08-2009 at 16:21.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-08-2009 , 16:14   Re: Who is driving?
Reply With Quote #10

Quote:
Originally Posted by tuty View Post
Code:
Also: change   random(255) to   random(256)
why?
random - Returns a pseudo-random number in the range of 0 to max-1.
Syntax:

random ( max )

__________________
joaquimandrade is offline
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

Forum Jump


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


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