how to show timer in gametext?
#1

hey guys,
yes another question XD im scripting very much today XD

i have made it that when a player is in dealmode( /deal) and when he exits his car it says: get back in your car or you lose your job;
and i have made a timer which will auto disable the work he has after 15 seconds..
but how to put those 15 seconds on the screen as gametext?
like it is ticking of and the player can see it...
can anyone tell me how i have to do this?

codes:
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if( DealEnable[ playerid ] == 1 ){
    SetTimerEx("StopDeal", 20000, 0, "d", playerid);
    SendClientMessage(playerid, COLOR_RED, "Go back in your car!, else you will lose your Job!!");
    StopAudioStreamForPlayer(playerid);
    }
    return 1;
}
public StopDeal(playerid)
{
    SetPlayerWantedLevel(playerid, 0);
    DealEnable[ playerid ] = 0;
    SendClientMessage(playerid, COLOR_RED, "you quited your Job!");
    return 1;
}

greets niels
Reply


Messages In This Thread
how to show timer in gametext? - by niels44 - 04.02.2012, 18:05
Re: how to show timer in gametext? - by niels44 - 04.02.2012, 18:20
Re: how to show timer in gametext? - by InferNus` - 04.02.2012, 18:47
Re: how to show timer in gametext? - by niels44 - 04.02.2012, 18:49
Re: how to show timer in gametext? - by Konstantinos - 04.02.2012, 18:52
Re: how to show timer in gametext? - by ғαιιοцт - 04.02.2012, 18:53
Re: how to show timer in gametext? - by niels44 - 04.02.2012, 19:17

Forum Jump:


Users browsing this thread: 2 Guest(s)