AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   prepare to fight (https://forums.alliedmods.net/showthread.php?t=46530)

Spiky Pirate 10-28-2006 13:05

prepare to fight
 
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!

SweatyBanana 10-28-2006 14:45

Re: prepare to fight
 
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!"


Spiky Pirate 10-29-2006 17:47

Re: prepare to fight
 
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?

SweatyBanana 10-29-2006 23:57

Re: prepare to fight
 
there is a random number function and you can use a switch() statement to randomly display each hud message.

Spiky Pirate 11-05-2006 19:33

Re: prepare to fight
 
sorry for being not so smart..i dont quite follow.
can you give me an example?

The Specialist 11-05-2006 19:53

Re: prepare to fight
 
well if you wanted a specifc order i would do a swtich case statment .or a bool .

Spiky Pirate 11-08-2006 14:54

Re: prepare to fight
 
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(528) : 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 ...

SweatyBanana 11-08-2006 20:29

Re: prepare to fight
 
1 Attachment(s)
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!"


Spiky Pirate 11-29-2006 19:24

Re: prepare to fight
 
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 :cry:

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 12-05-2006 19:08

Re: prepare to fight
 
anyone?
I am not good with scripting, so i was wondering if anyone can do this for me :D


All times are GMT -4. The time now is 04:47.

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