AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [l4d2]fun sayer(version = 2) (https://forums.alliedmods.net/showthread.php?t=132267)

gamemann 07-13-2010 11:41

[l4d2]fun sayer(version = 2)
 
1 Attachment(s)
description:
A funny sayer thing i made so when you get killed, pounced on, vomitted on, smoked.etc there fun sayer will say something but u can edit it in the server.cfg(this is for fun remember!)
convars:
Code:

// This file was auto-generated by SourceMod (v1.4.0-dev)
// ConVars for plugin "funsayer.smx"


// This file was auto-generated by SourceMod (v1.4.0-dev)
// ConVars for plugin "funsayer.smx"


// what txt comes up when a charger charges you! HINT TEXT!
// -
// Default: "You Are flyen in the air hahahahah"
player_charged_ht "You Are flyen in the air hahahahah"

// what txt comes up when a charger charges you! PRINT TEXT!
// -
// Default: "You Are flyen in the air hahahahah"
player_charged_pt "You Are flyen in the air hahahahah"

// what it says when the client dies HINT TEXT
// -
// Default: "you just got owned!"
player_death_ht "you just got owned!"

// what it says when the client dies PRINT TEXT!
// -
// Default: "you just got owned!"
player_death_pt "you just got owned!"

// what txt u get for being pauked on by the boomer HINT TEXT!
// -
// Default: "eww nobody likes you, pauk person!"
player_pauked_on_ht "eww nobody likes you, pauk person!"

// what txt u get for being pauked on by the boomer PRINT TEXT!
// -
// Default: "eww nobody likes you, pauk person!"
player_pauked_on_pt "eww nobody likes you, pauk person!"

// what it says when a player gets pounced by a hunter HINT TEXT!
// -
// Default: "you just got pounced!"
player_pounced_ht "you just got pounced!"

// what it says when a player gets pounced by a hunter PRINT TEXT!
// -
// Default: "you just got pounced!"
player_pounced_pt "you just got pounced!"

// what it says for a jockey ride HINT TEXT
// -
// Default: " you are gettin killed by a jockey ride!"
player_rided_ht " you are gettin killed by a jockey ride!"

// what it says for a jockey ride PRINT TEXT!
// -
// Default: " you are gettin killed by a jockey ride!"
player_rided_pt " you are gettin killed by a jockey ride!"

// what it says when a player gets smoked! HINT TEXT!
// -
// Default: "you just got smoked!"
player_smoked_ht "You are getting PWNED by the smoker!"

// what it says when a player gets smoked! PRINT TEXT!
// -
// Default: "you just got smoked!"
player_smoked_pt "you just got smoked!"

// what it says when a spitted is spitten! HINT TEXT!
// -
// Default: "you are in a guey place and getting owned!"
player_spitted_ht "you are in a guey place and getting owned!"

// what it says when a spitted is spitten! PRINT TEXT!
// -
// Default: "you are in a guey place and getting owned!"
player_spitted_pt "you are in a guey place and getting owned!"

// allow the words to be in hint txt
// -
// Default: "1"
say_in_hint_txt "1"

// allow the words to be in print txt
// -
// Default: "1"
say_in_print_txt "0"

// the plugins version
// -
// Default: "1.1"
sm_cvar_version "1.1"

also:
- i tested it and it worked fine for me!
version history:
1.0:
-release
1.1:
- fixed the whole thing
- works perfect
- cleaned up code!
notes:
- i tested it and it worked so if it doesnt for you please contact me!
bugs:
- at times it may like say the letter one at a time and i tried fixing it but i cant i will later though, but most of the time it works!

sirphr 07-19-2010 06:58

Re: [l4d2]fun sayer(version = 1)
 
Your plugin works but the text does not show. I gives me a little Hint box but its blank.

Rincewind 07-19-2010 07:33

Re: [l4d2]fun sayer(version = 1)
 
Quote:

Originally Posted by gamemann (Post 1237770)
what txt u get for being pauked on by the boomer

I'm pretty sure a boomer doesn't pauk on you.
He rather pukes.

ZackWarren 07-29-2010 23:01

Re: [l4d2]fun sayer(version = 1)
 
Where is the server.cfg?

honorcode23 07-29-2010 23:13

Re: [l4d2]fun sayer(version = 1)
 
This:
Code:

PrintHintText(i, "%s", Ride);
                                decl String:wow[128];
                                GetConVarString(Ride, wow, 128);

You are printing the hint text without storing the data first, thats why people get blank messages.

sirphr 08-07-2010 00:38

Re: [l4d2]fun sayer(version = 1)
 
No update on the blank Hint Messages?

gamemann 08-07-2010 00:44

Re: [l4d2]fun sayer(version = 1)
 
Quote:

Originally Posted by Surf3rDud3 (Post 1263905)
No update on the blank Hint Messages?

sorry i have been really busy lately i will get worken on it tomarrow!

Afronanny 08-23-2010 23:11

Re: [l4d2]fun sayer(version = 1)
 
Use MaxClients, not GetMaxClients()

gamemann 10-01-2010 11:04

Re: [l4d2]fun sayer(version = 1)
 
Quote:

Originally Posted by honorcode23 (Post 1255743)
This:
Code:

PrintHintText(i, "%s", Ride);
                                decl String:wow[128];
                                GetConVarString(Ride, wow, 128);

You are printing the hint text without storing the data first, thats why people get blank messages.

ok sorry i havent been on so long but now i see what i did wrong, will be fixing that in the next update!

gamemann 10-01-2010 11:33

Re: [l4d2]fun sayer(version = 1)
 
ok i tried loading the plugin ingame but it doesnt create the cfg and its not working... so i type in the console
Code:

sm plugins load funsayer
so that loaded it but still doesnt work heres what it said:
Code:

L 10/01/2010 - 11:28:07: [SM] Displaying call stack trace for plugin "funsayer.smx":
L 10/01/2010 - 11:28:07: [SM]  [0]  Line 27, B:\Steam\steamapps\common\left 4 dead 2\left4dead2\addons\sourcemod\scripting\funsayer.sp::OnPluginStart()
[SM] Loaded plugin funsayer.smx successfully.

What does this mean?



EDIT:
fixed now everything is working well not everything new problem...
Ok it prints the text out but it prints 1 letter at a time like u(20 seconds later) r(20 seconds later) i! Yea its anooying!


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

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