Hey guys,
I am trying to make a menu for special rounds and I have this code:
PHP Code:
public logevent_round_start()
{
static iMaxPlayers;
if ( !iMaxPlayers )
iMaxPlayers = get_maxplayers();
for(new id = 1; id <= get_maxplayers(); id++)
{
if ( SpecialDay == 1 )
{
server_cmd("sv_maxspeed 1000");
set_user_maxspeed(1, 1000.0);
set_hudmessage();
show_hudmessage(0, "This is a speed round");
b_Speed = false
b_SpeedWeapon = true
SpecialDay = 0
}
and also
PHP Code:
public CurWeapon(id)
{
if(b_SpeedWeapon == true);
{
set_user_maxspeed(id, 1000.0);
}
}
Everything works
except actually changing the players speed. It doesn't matter if I don't change weapons or I do, I stay the same speed. What am I doing wrong?
Also, how do I change it so it gives everyone maxspeed? I tried setting that to set_user_maxspeed(0, 1000.0) with a 0 instead of 1 but that didn't work at all.
Thanks!