igy probald... Bocs ekezet miatt valami van billentyummel.
new Camera[MAX_PLAYERS];
forward mozgokamera(playerid, type);
public mozgokamera(playerid, type)
{
switch(type)
{
case 0:
{
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, 0.0, 0.0, 10.0, 1000.0, 1000.0, 30.0, 10000, CAMERA_MOVE);
//SetTimerEx(\"mozgokamera\", 7000-600, 0, \"id\", playerid, 1);
}
}
return 0;
}
public OnPlayerConnect(playerid)
{
Camera[playerid] = SetTimerEx(\"mozgokamera\", 2000, false, \"i\", playerid);
.............
public OnPlayerSpawn(playerid)
{
TogglePlayerControllable(playerid, false); //false nem tru igen
SetCameraBehindPlayer(playerid);
TogglePlayerSpectating(playerid, 0);
KillTimer(Camera[playerid]);
...............
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid, 0);
TogglePlayerControllable(playerid, false);
//SetTimerEx(\"mozgokamera\", 6000, 0, \"id\", playerid, 0);
SetCameraBehindPlayer(playerid);
KillTimer(Camera[playerid]);
return 1;
}