[ajuda]naum esta retornando
#4

aproveitando o topic o meu sistema de fps que criei nгo estб aparecendo na cabeзa do player:

pawn Код:
#include <a_samp>
#include <foreach>

new DLlast[MAX_PLAYERS] = 0;
new FPS2[MAX_PLAYERS] = 0;
new Text3D:label[MAX_PLAYERS];

public OnFilterScriptInit()
{
    SetTimer("FPSUP",1203,true);
    return 1;
}
new string[100];
public OnPlayerUpdate(playerid)
{
    new drunk2 = GetPlayerDrunkLevel(playerid);
    if(drunk2 < 100)
    {
        SetPlayerDrunkLevel(playerid,2000);
    }
    else
    {
        if(DLlast[playerid] != drunk2)
        {
            new fps = DLlast[playerid] - drunk2;
           
            if((fps > 0) && (fps < 200))
            FPS2[playerid] = fps;
            DLlast[playerid] = drunk2;
        }
    }
}

public OnPlayerDisconnect(playerid)
{
    Delete3DTextLabel(Text3D:label[playerid]);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    FPSUP();
    return 1;
}

forward FPSUP();
public FPSUP()
{
    foreach(Player,i)
    {
        format(string,sizeof(string),"FPS: %d",FPS2[i]-1);
        Attach3DTextLabelToPlayer(label[i], FPS2[i], 0.0, 0.0, 0.7);
        Update3DTextLabelText(label[i], -1, string);
        continue;
    }
}
Na verdade eu so adaptei acho que foi o do Macitosh naum sei o.o
Reply


Messages In This Thread
[ajuda]naum esta retornando - by |_MeGaTroN_| - 29.02.2012, 17:10
Re: [ajuda]naum esta retornando - by paulor - 29.02.2012, 17:15
Re: [ajuda]naum esta retornando - by |_MeGaTroN_| - 29.02.2012, 17:23
Re: [ajuda]naum esta retornando - by |_MeGaTroN_| - 29.02.2012, 18:15
Re: [ajuda]naum esta retornando - by whiXґ - 29.02.2012, 19:07
Re: [ajuda]naum esta retornando - by |_MeGaTroN_| - 29.02.2012, 20:58
Re: [ajuda]naum esta retornando - by StrondA_ - 29.02.2012, 21:17
Re: [ajuda]naum esta retornando - by zbt - 29.02.2012, 21:28
Re: [ajuda]naum esta retornando - by paulor - 29.02.2012, 21:38

Forum Jump:


Users browsing this thread: 2 Guest(s)