Raised This Month: $ Target: $400
 0% 

prepare to fight


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spiky Pirate
Senior Member
Join Date: Oct 2006
Old 10-28-2006 , 13:05   prepare to fight
Reply With Quote #1

Code:
  if (RoundCounter)
  {
   set_hudmessage(200, 0, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
   show_hudmessage(0, "%L", LANG_PLAYER, "PREPARE_FIGHT", g_roundCount)
  }
What I am trying to do is
1) I want the "prepare to fight" message to be displayed on the bottom center of the screen. I don't know the code for it since it's all numbers..

2) I want to add my own message while the 'prepare to fight" message gets displayed on the bottom center. I want my own messages to be displayed on the center top, so they will pop up along with the prepare to fight message.

Thanks a bunch!
Spiky Pirate is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-28-2006 , 14:45   Re: prepare to fight
Reply With Quote #2

Top:
PHP Code:
set_hudmessage(2552552550.32006.012.0)
show_hudmessage(id"Your top message here.."
Bottom:
PHP Code:
set_hudmessage(2552552550.320.906.012.0)
show_hudmessage(id"Prepare to Fight!"
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Spiky Pirate
Senior Member
Join Date: Oct 2006
Old 10-29-2006 , 17:47   Re: prepare to fight
Reply With Quote #3

Thanks for the reply.
But here's one thing I'd like to add to my own message that display on the top middle.

I have total 3-4 seperate messages that need to be displayed in different rounds. Which means in round 1, people will see message1; in round two, people will see message 2.

How do you set it up like that?
Spiky Pirate is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-29-2006 , 23:57   Re: prepare to fight
Reply With Quote #4

there is a random number function and you can use a switch() statement to randomly display each hud message.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Spiky Pirate
Senior Member
Join Date: Oct 2006
Old 11-05-2006 , 19:33   Re: prepare to fight
Reply With Quote #5

sorry for being not so smart..i dont quite follow.
can you give me an example?
Spiky Pirate is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-05-2006 , 19:53   Re: prepare to fight
Reply With Quote #6

well if you wanted a specifc order i would do a swtich case statment .or a bool .
The Specialist is offline
Send a message via AIM to The Specialist
Spiky Pirate
Senior Member
Join Date: Oct 2006
Old 11-08-2006 , 14:54   Re: prepare to fight
Reply With Quote #7

Quote:
SweatyBananaTop:
PHP Code:
set_hudmessage(255, 255, 255, 0.32, 0, 0, 6.0, 12.0)
show_hudmessage(id, "Your top message here..")


Bottom:
PHP Code:
set_hudmessage(255, 255, 255, 0.32, 0.9, 0, 6.0, 12.0)
show_hudmessage(id, "Prepare to Fight!")

I put tthose lines in my miscstats.sma and tried to compile it, but during the compling process, I get some error messages saying that I can't compile. Here's what it says when I try to compile:

//AMXXPC compile.exe
// by the AMX Mod X Dev Team

//// miscstats.sma
// C:\Program Files\Steam\SteamApps\killforameal\dedicated server\cstrike\addons
\amxmodx\scripting\miscstats.sma(52 : warning 213: tag mismatch
// C:\Program Files\Steam\SteamApps\killforameal\dedicated server\cstrike\addons
\amxmodx\scripting\miscstats.sma(529) : error 017: undefined symbol "id"
// C:\Program Files\Steam\SteamApps\killforameal\dedicated server\cstrike\addons
\amxmodx\scripting\miscstats.sma(529) : warning 215: expression has no effect
// C:\Program Files\Steam\SteamApps\killforameal\dedicated server\cstrike\addons
\amxmodx\scripting\miscstats.sma(529) : error 001: expected token: ";", but foun
d ")"
// C:\Program Files\Steam\SteamApps\killforameal\dedicated server\cstrike\addons
\amxmodx\scripting\miscstats.sma(529) : error 029: invalid expression, assumed z
ero
// C:\Program Files\Steam\SteamApps\killforameal\dedicated server\cstrike\addons
\amxmodx\scripting\miscstats.sma(529) : fatal error 107: too many error messages
on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file compiled\miscstats.amx (compile failed).
//
// Compilation Time: 0.32 sec
// ----------------------------------------
Press enter to exit ...
Spiky Pirate is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 11-08-2006 , 20:29   Re: prepare to fight
Reply With Quote #8

That is because public eNewRound() does not have id passed in it.

The attached plugin will send the message to all players on new round.


PHP Code:
set_hudmessage(2552552550.320.906.012.0)
show_hudmessage(0"Prepare to Fight!"
Attached Files
File Type: sma Get Plugin or Get Source (miscstats.sma - 1157 views - 17.2 KB)
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Spiky Pirate
Senior Member
Join Date: Oct 2006
Old 11-29-2006 , 19:24   Re: prepare to fight
Reply With Quote #9

I am wondering how i can add seperate messages..
Can anyone do this and attach the files for me? I'll really appreciate if you can do this for me

1) The default prepare to fight message -on the bottom center of the screen
2) Friendly Fire is ON!!! -on the bottom center of the screen, right below the default prepare to fight message

*1 and 2 need to be showed every round.


3) Visit out website today! www.kbk.clanservers.com -on the very center of the screen
4) Follow the server rules! -on the very center of the screen
5) Got Complaints, comments or questions? Contact me at [email protected]! -on the very center of the screen

3,4 and 5 need to be showed seperately, one at a time.(so that #3 displayed on one round, #4 displayed on next round and so on..)

Thank you so much!!
Spiky Pirate is offline
Spiky Pirate
Senior Member
Join Date: Oct 2006
Old 12-05-2006 , 19:08   Re: prepare to fight
Reply With Quote #10

anyone?
I am not good with scripting, so i was wondering if anyone can do this for me

Last edited by Spiky Pirate; 12-13-2006 at 23:08.
Spiky Pirate 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 04:47.


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