AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [PROBLEM SOLVED] server_cmd problems (https://forums.alliedmods.net/showthread.php?t=40897)

shino 07-05-2006 15:29

[PROBLEM SOLVED] server_cmd problems
 
first problem:
Code:
register_cvar("bc_teamA","NiP"); register_cvar("bc_teamB","fnatic"); get_cvar_string("bc_teamA",bcTeamA,31); get_cvar_string("bc_teamB",bcTeamB,31); server_cmd("say Teams %s and %s, choose your leader!",bcTeamA,bcTeamB);

well, server_cmd launches at round start, but it shows only "Teams and , choose your leader!", without any names.

second problem:
Code:
server_cmd("hostname Counter Strike Fun Play")
this also launches at round start, but it changes the name of the server only to Counter :(

sorry for the code, i'm watching portugal vs. france and there's penalty as i wrote :P gbye

EDIT: damn french!

v3x 07-05-2006 15:51

Re: server_cmd problems
 
Code:
server_cmd("say ^"Teams %s and %s, choose your leader!^"",bcTeamA,bcTeamB); server_cmd("hostname ^"Counter Strike Fun Play^"");

shino 07-05-2006 16:09

Re: server_cmd problems
 
doesn't help... neither of these two

EDIT: hostname ... works, but the first problem is still unsolved :)

shino 07-05-2006 16:35

Re: server_cmd problems
 
no, cvars don't work even if i stand on my hand.

i tried also:

Code:
server_cmd("hostname ^"%s vs. %s - Powered by Battle Controll^"",bcTeamA,bcTeamB);

it doesn't work, it shows < vs. - Powered by Battle Controll>


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

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