Question [rep+]
#9

Quote:
Originally Posted by Neonman
Посмотреть сообщение
Maybe because there are many maps (objects) in that place?
yes there are , im using "CreateDynamicObject" , but other servers also using that , im usng onplayerupdate
Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,15.0,382.4741,2548.9509,20.1041))SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.2, 0.2, 0.2);
    if(IsPlayerInRangeOfPoint(playerid,15.0,-1185.4705,27.1411,17.6159))SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.2, 0.2, 0.2);
    }

    new InfoString[512];
    if(IsPlayerNPC(playerid)) return 0;
    format(InfoString, sizeof(InfoString), "Kills: ~w~~W~%d~N~~r~Deaths: ~W~%d~N~~P~Ratio:~W~ %0.2f~N~~Y~Score: ~W~%d", pInfo[playerid][Kills],pInfo[playerid][Deaths],Float:pInfo[playerid][Kills]/Float:pInfo[playerid][Deaths],GetPlayerScore(playerid));
    TextDrawSetString(PPing[playerid], InfoString);

    #if PauseDetectSystem == true
    pTick[playerid] = GetTickCount();
    #endif
    #if MoveSystem == true
    if(pInfo[playerid][Move] == 1)
    GetPlayerHoldingKey(playerid);
    #endif
    return 1;
}
Does that lags for 150 players?
Reply


Messages In This Thread
Question [rep+] - by SPA - 18.04.2014, 16:00
Re: Question [rep+] - by anou1 - 18.04.2014, 16:06
Re: Question [rep+] - by SPA - 19.04.2014, 06:53
Re: Question [rep+] - by Flake. - 19.04.2014, 06:58
Re: Question [rep+] - by SPA - 19.04.2014, 06:59
Re: Question [rep+] - by Bingo - 19.04.2014, 07:01
Re: Question [rep+] - by ChandraLouis - 19.04.2014, 07:13
Re: Question [rep+] - by Astralis - 19.04.2014, 07:18
Re: Question [rep+] - by SPA - 19.04.2014, 07:23

Forum Jump:


Users browsing this thread: 4 Guest(s)