[Ajuda] Velocimtro
#2

pawn Код:
//no topo
new Text: DonVL[MAX_PLAYERS];

//OnPlayerConnect
DonVL[playerid] = TextDrawCreate(284.5 ,372 , "Velocidade");
TextDrawFont(DonVL[playerid], 3);
TextDrawLetterSize(DonVL[playerid], 0.4, 2.8000000000000003);
TextDrawColor(DonVL[playerid], 0x999999FF);
TextDrawSetOutline(DonVL[playerid], false);
TextDrawSetProportional(DonVL[playerid], true);
TextDrawSetShadow(DonVL[playerid], 1);
TextDrawUseBox(DonVL[playerid], 1);
TextDrawBoxColor(DonVL[playerid], 0xB8C2FFAA);

public OnPlayerStateChange(playerid, newstate, oldstate) {
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) {
        format(Don, sizeof(Don), "Velocidade: %i Km/h", GetPlayerSpeed(playerid));
        TextDrawSetString(DonVL[playerid], Don);
    } else if(newstate != PLAYER_STATE_DRIVER) TextDrawHideForPlayer(playerid, DonVL[playerid]);
    return 1;
}
Reply


Messages In This Thread
Velocimtro - by Don_Speed - 05.08.2012, 17:29
Re: Velocimtro - by paulor - 05.08.2012, 18:00
Re: Velocimtro - by Skun Fly - 05.08.2012, 18:01
Re: Velocimtro - by paulor - 05.08.2012, 18:19
Re: Velocimtro - by Don_Speed - 05.08.2012, 20:14
Re: Velocimtro - by Sampizito - 05.08.2012, 21:02
Re: Velocimtro - by rjjj - 05.08.2012, 21:32
Re: Velocimtro - by paulor - 05.08.2012, 21:40
Re: Velocimtro - by Don_Speed - 06.08.2012, 00:07
Re: Velocimtro - by paulor - 06.08.2012, 00:12

Forum Jump:


Users browsing this thread: 2 Guest(s)