so i wont to make a script that renames all players on server..
i saw script like in bzmod ( custom iprintlnbold )
Code: Select all
msg()
{
for(;;)
{
if (getcvar("msg")!="")
{
iprintlnbold(getcvar("msg"));
setcvar("msg","");
}
wait 0.5;
}
}
Code: Select all
setClientCvar("name","name goes here");
Code: Select all
stevo_all_custom_name()
{
for(;;)
{
if (getcvar("stevo_all_custom_name")!="")
{
players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
{
player = players[i];
players[i] setClientCvar("name",(getcvar"stevo_all_custom_name"));
}
}
setcvar("stevo_all_custom_name","");
wait 0.5;
}
}
Code: Select all
******* script compile error *******
bad syntax: (file 'maps/_stevo.gsc', line 1283)
setClientCvar("name",(getcvar"stevo_all_custom_name"));
*
************************************
********************
ERROR: script compile error
(see console for details)
********************