28.10.2012, 13:06
Am I the only one that can't seem to get this working for the life of me? I've tried two solutions; both have failed.
1.
2.
What the hell am I doing wrong?
1.
pawn Код:
public OnPlayerConnect ( playerid )
{
TogglePlayerSpectating( playerid, true );
SetPlayerCameraPos( playerid, 0.0, 0.0, 0.0 );
return 1;
}
pawn Код:
new bool: justConnected [ MAX_PLAYERS ] = false;
public OnPlayerConnect ( playerid )
{
TogglePlayerSpectating( playerid, true );
justConnected [ playerid ] = true;
return 1;
}
public OnPlayerUpdate(playerid)
{
if( justConnected [ playerid ] == true )
{
SetPlayerCameraPos( playerid, 0.0, 0.0, 0.0 );
}
return 1;
}