20.01.2012, 08:42
Nevermind...
This code looks fine provided all the variables are correct.
Try adding KillTimer(PlayerInfo[playerid][SpawnTimer]); above PlayerInfo[playerid][SpawnTimer] = SetTimerEx("MoveCamera", moving_speed, true, "i", playerid); in OnPlayerRequestClass
and change the code in OnPlayerSpawn to OnPlayerRequestSpawn
This code looks fine provided all the variables are correct.
Try adding KillTimer(PlayerInfo[playerid][SpawnTimer]); above PlayerInfo[playerid][SpawnTimer] = SetTimerEx("MoveCamera", moving_speed, true, "i", playerid); in OnPlayerRequestClass
and change the code in OnPlayerSpawn to OnPlayerRequestSpawn