#1

this code make's my game lag

PHP код:
public OnPlayerUpdate(playerid)
{
    if(
IsPlayerInArea(playerid,890.625503.906252906.252906.25)) //Same coords as your gangzone
        
{
                
GameTextForPlayer(playerid"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Location Gangzone"30003);
        }
    return 
1;
}
stock IsPlayerInArea(playerid,Float:minX,Float:minY,Float:maxX,Float:maxY)
{
    new 
Float:pX,Float:pY,Float:pZ;
    
GetPlayerPos(playerid,pX,pY,pZ);
    if(
pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) return 1;
    else return 
0;

Reply


Messages In This Thread
lag - by jamesmith12 - 29.08.2015, 11:06
Re: lag - by jamesmith12 - 29.08.2015, 11:34
Re: lag - by Finn707 - 29.08.2015, 11:45
Re: lag - by jamesmith12 - 29.08.2015, 12:20
Re: lag - by Finn707 - 29.08.2015, 12:36
Re: lag - by R0 - 29.08.2015, 12:42
Re: lag - by jamesmith12 - 29.08.2015, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)