InterpolateCameraPos
#1

pawn Код:
InterpolateCameraPos(playerid, 27.0806,1519.4014,12.7560, 8.6120,1519.7433,100.9157, 6000, CAMERA_MOVE);
            InterpolateCameraLookAt(playerid, 27.0806,1519.4014,12.7560, 30.0806,1521.4014,14.7560, CAMERA_CUT);
How to make the camera look down?..




Also this problem.

pawn Код:
new terrorist = GetPlayersInTeamFromMaxPlayers(TEAM_TERRORISTS);

format(TDString, 100, "~R~~H~TERRORISTS: %i", terrorist);
        PlayerTextDrawSetString(playerid,Textdraw1[ playerid ], TDString);
This textdraw is showing 499 players, when it should be 0 because it get's the player's team and sets an string with the team players, if i join this team terrorists the count goes to 500 Counter Terrorists just works fine...

Here is the stock to get the player's that are in one team

pawn Код:
GetPlayersInTeamFromMaxPlayers(teamid)
{
    new playercount = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(gTeam[i] != teamid) continue;
        playercount++;
       
        if(TDead[ i ][ Terrorists ] == true)
        playercount--;
       
        if(TDead[ i ][ Counter ] == true)
        playercount--;
    }
    return playercount;
}
help rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)