Jump to content
  • 0

[urgent] :-??


Cosmy

Question

6 answers to this question

Recommended Posts

Poftim, ti-am facut eu ceva. Baga astea la inceputul modului:

new Text:DraperRosu;
new Text:DraperGalben;
new Text:DraperAlbastru;
Dupa OnGameModeInit{ adauga:
//------------------------------------------[draper romania]--------------------------------------
	DraperRosu = TextDrawCreate(501.000000, 109.000000, " ~n~");
	TextDrawBackgroundColor(DraperRosu, 255);
	TextDrawFont(DraperRosu, 1);
	TextDrawLetterSize(DraperRosu, 0.500000, 1.300000);
	TextDrawColor(DraperRosu, -1);
	TextDrawSetOutline(DraperRosu, 0);
	TextDrawSetProportional(DraperRosu, 1);
	TextDrawSetShadow(DraperRosu, 1);
	TextDrawUseBox(DraperRosu, 1);
	TextDrawBoxColor(DraperRosu, -16776961);
	TextDrawTextSize(DraperRosu, 549.000000, 30.000000);

	DraperGalben = TextDrawCreate(578.000000, 109.000000, " ~n~");
	TextDrawBackgroundColor(DraperGalben, 255);
	TextDrawFont(DraperGalben, 1);
	TextDrawLetterSize(DraperGalben, 1.450000, 1.300000);
	TextDrawColor(DraperGalben, -1);
	TextDrawSetOutline(DraperGalben, 0);
	TextDrawSetProportional(DraperGalben, 1);
	TextDrawSetShadow(DraperGalben, 1);
	TextDrawUseBox(DraperGalben, 1);
	TextDrawBoxColor(DraperGalben, -65281);
	TextDrawTextSize(DraperGalben, 537.000000, 30.000000);

	DraperAlbastru = TextDrawCreate(614.000000, 109.000000, " ~n~");
	TextDrawBackgroundColor(DraperAlbastru, 255);
	TextDrawFont(DraperAlbastru, 1);
	TextDrawLetterSize(DraperAlbastru, 1.450000, 1.300000);
	TextDrawColor(DraperAlbastru, -1);
	TextDrawSetOutline(DraperAlbastru, 0);
	TextDrawSetProportional(DraperAlbastru, 1);
	TextDrawSetShadow(DraperAlbastru, 1);
	TextDrawUseBox(DraperAlbastru, 1);
	TextDrawBoxColor(DraperAlbastru, 65535);
	TextDrawTextSize(DraperAlbastru, 574.000000, 30.000000);
Daca vrei sa se vada tot timpu Adauga liniile astea la OnPlayerConnect
TextDrawShowForPlayer(playerid, Text:DraperRosu);
extDrawShowForPlayer(playerid, Text:DraperGalben);
TextDrawShowForPlayer(playerid, Text:DraperAlbastru);
Daca vrei prin comanda adaugi la inceputul modului:
forward DraperHide();
OnPlayerCommandText asta:
if(strcmp(cmdtext, "/drapel", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        TextDrawShowForPlayer(playerid, Text:DraperRosu);
	        TextDrawShowForPlayer(playerid, Text:DraperGalben);
	        TextDrawShowForPlayer(playerid, Text:DraperAlbastru);
	        SetTimer("DraperHide",10000,0);
		}
		return 1;
	}
La sfarsitul modului:
public DraperHide()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
		TextDrawHideForPlayer(i, Text:DraperRosu);
 		TextDrawHideForPlayer(i, Text:DraperGalben);
  		TextDrawHideForPlayer(i, Text:DraperAlbastru);
	}
}

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.