SA-MP Forums Archive
Counter Tdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Counter Tdraw (/showthread.php?tid=194490)



Counter Tdraw - SworDDicK - 29.11.2010

Hello I need this

Код:
public OnPlayerEnterCheckpoint(playerid)
{
	new string[256]; new playername [MAX_PLAYER_NAME];
	GetPlayerName (playerid, playername, sizeof(string));
  	if(gTeam[playerid] == TEAM_BOMBER) {
		format (string, sizeof(string), "YYY: %s (%d) YYY", playername, playerid);
		SendClientMessageToAll (COLOR_WHITE, string);
		SetTimerEx("Disable", 10000, false, "i", playerid);
	} else if(gTeam[playerid] == TEAM_DEFEND) {
 		SendClientMessage (playerid, COLOR_RED, "YYYY");
	}


    return 1;
}
Now I want that rigth side show textdraw and it Say's
10 sec more to plant the bomb
and it count to 0
then new textdraw at same place
40 sec until explosion


Re: Counter Tdraw - m0k1 - 29.11.2010

lol meybe to use timers ?/


Re: Counter Tdraw - Sub Zero - 29.11.2010

Make a textdraw with textdraw editor and then use timers and use also TextDrawShowForPlayer and DestroyTextdrawForPlayer