Olб pessoal to com duvida !!! Em text Draw
#1

Bom Pessoal aqui esta o textDraw


pawn Code:
PHP код:
//==========/*TOPO DO GAMEMODE*/==========//
new Text:Rodape;
forward RodapeTimer()
//==========/*OnPlayerConnect*/==========//
TextDrawShowForPlayer(playeridRodape);
//==========/*OnPlayerDisconnect*/==========//
TextDrawHideForPlayer(playeridRodape);
//==========/*OnGameModeInit*/==========//
Rodape TextDrawCreate(1.000000437.000000"~w~[SoD]   ~r~Society Of Drifiters    ~w~(/) ~r~Players    ~w~http://www.equipe-sod.blogspot.com   /ajuda    ~r~Horario: ~w~::");
TextDrawBackgroundColor(Rodape0x00000066);
TextDrawFont(Rodape1);
TextDrawLetterSize(Rodape0.3401.0);
TextDrawColor(Rodape0xFFFFFFFF);
TextDrawSetOutline(Rodape0);
TextDrawSetProportional(Rodape1);
TextDrawSetShadow(Rodape1);
TextDrawUseBox(Rodape1);
TextDrawBoxColor(Rodape0x00000066);
TextDrawTextSize(Rodape640.013.0);
SetTimer("RodapeTimer"1000true);
//==========/*FINAL DO GAMEMODE(RECOMENDADO)*/==========//
public RodapeTimer()
{
    new 
PlayersOnstring[125], hourminutesecond;
    for(new 
0MAX_PLAYERS++)
    {
        if(!
IsPlayerConnected(i)) continue;
        
PlayersOn++;
    }
    
gettime(hour,minute,second);
    
format(stringsizeof string"~w~[SoD]   ~r~Society Of Drifiters    ~w~(%d/%d) ~r~Players    http://~w~www.equipe-sod.blogspot.com   /ajuda    ~r~Horario: ~w~%d:%d:%d"PlayersOnGetMaxPlayers(), hourminutesecond);
    
TextDrawSetString(Rodapestring);
    return 
1;

Bom eu ponho tudo de acordo que estб logo acima, pois quando eu abro o server pra testar o rodapй nao aparece !!!
Esse rodape e da [SoD] Mais claro q vo edita !!!!

Help !!! Me ajudem '

Grato: Gustavo
Reply
#2

pawn Код:
public RodapeTimer()
{
    new PlayersOn, string[125], hour, minute, second;
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        if(!IsPlayerConnected(i)) continue;
        PlayersOn++;
    }
    gettime(hour,minute,second);
    format(string, sizeof string, "~w~[SoD]   ~r~Society Of Drifiters    ~w~(%d/%d) ~r~Players    http://~w~www.equipe-sod.blogspot.com   /ajuda    ~r~Horario: ~w~%d:%d:%d", PlayersOn, GetMaxPlayers(), hour, minute, second);
    TextDrawSetString(Rodape, string);
    TextDrawShowForAll(Rodape);
    return 1;
}
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=284095
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)