21.12.2011, 15:28
I think you telling us that your server laggs, if yes,
remove this code from onplayerupdate and do this
OnGameModeInit put this timer SetTimer("update",3000,true); //this will update every 3 seconds
remove this code from onplayerupdate and do this
pawn Код:
forward update();
public update()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gPlayerLogged[i])
{
new string3[64];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(i, playername3, sizeof(playername3));
///OTHER CODE HERE


