12.02.2011, 12:52
I made the player to spectate nothing for 5 secondsTogglePlayerSpectating(playerid, 1);
After 5 seconds I tried TogglePlayerSpectating(playerid, 0); But the player is still in spectate mode. Is it a bug?
Here's the code:
After 5 seconds....
After 5 seconds I tried TogglePlayerSpectating(playerid, 0); But the player is still in spectate mode. Is it a bug?
Here's the code:
Код:
TogglePlayerSpectating(playerid, 1); SetTimerEx("PlayerOff", 5000, 0, "d", playerid);
Код:
public PlayerOff(playerid) { SetPlayerPos(playerid, 1481.2018, 1778.8016, 14.7248); SetPlayerFacingAngle(playerid, 264.7461); SetPlayerCameraLookAt(playerid, 1481.2018, 1778.8016, 14.7248); SetPlayerCameraPos(playerid, 1481.2018 + (10 * floatsin(-272.846618, degrees)), 1778.8016 + (10 * floatcos(-272.846618, degrees)), 14.7248); TogglePlayerSpectating(playerid, 0); return 1; }