TextDraw
#2

On the top of your script:
pawn Код:
new Text:bomb;
new timerbomb[MAX_PLAYERS];
forward bombdone(playerid);
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    bomb = TextDrawCreate(50.0, 200.0,"Planting a bomb...");
    TextDrawShowForPlayer(playerid, bomb);
    timerbomb[playerid] = SetTimerEx("bombdone", 10000, false, "d", playerid);
    return 1;
}
pawn Код:
public OnPlayerLeaveCheckpoint(playerid)
{
    TextDrawHideForPlayer(playerid, bomb); //The person left the checkpoint
    KillTime(timerbomb[playerid]);
    SendClientMessage(playerid,0x00FF00AA,"You left the checkpoint, try again.");
    return 1;
}
pawn Код:
public bombdone(playerid)
{
    SendClientMessage(playerid,0x00FF00AA,"You planted succesfull the bomb.");
    TextDrawHideForPlayer(playerid, bomb);
    DisablePlayerCheckpoint(playerid);
    // ... other stuff ... //
    return 1;
}
Reply


Messages In This Thread
TextDraw - by NewbieBoy - 04.12.2009, 00:45
Re: TextDraw - by GTAguillaume - 04.12.2009, 02:43
Re: TextDraw - by NewbieBoy - 04.12.2009, 02:47
Re: TextDraw - by GTAguillaume - 04.12.2009, 02:53

Forum Jump:


Users browsing this thread: 2 Guest(s)