InterpolateCameraPos - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: InterpolateCameraPos (
/showthread.php?tid=439518)
InterpolateCameraPos -
Strier - 25.05.2013
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+