04.08.2013, 00:36
Код:
global ClassSelectionUpdate() { new t=GetTickCount(); new Float:x,Float:y; for(new i=0;i<PlayersSelectingClass;i++) { if(IsValidPlayer(PlayerClassSelectionList[i]) && SelectingClass[PlayerClassSelectionList[i]]) { if(ClassAngle[PlayerClassSelectionList[i]]>360.0) ClassAngle[PlayerClassSelectionList[i]]-=360.0; x=(4.5*floatsin(-ClassAngle[PlayerClassSelectionList[i]],degrees))+RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][0]; y=(7.0*floatcos(-ClassAngle[PlayerClassSelectionList[i]],degrees))+RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][1]; SetPlayerCameraPos(PlayerClassSelectionList[i],x,y,RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][2]+2.0); SetPlayerCameraLookAt(PlayerClassSelectionList[i],RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][0],RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][1], RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][2]+1.0); ClassAngle[PlayerClassSelectionList[i]]+=0.5; } } debugf(3,"ClassSelectionUpdate(): %dms, PlayersSelectingClass=%d",GetTickCount()-t,PlayersSelectingClass); return 1; }
It seems to be a problem from the website that i'm using to host :/
Because when i start selecting team i receive an advertissing text