SA-MP Forums Archive
[Ajuda] TextDrawDestroy - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] TextDrawDestroy (/showthread.php?tid=349963)



[Ajuda] TextDrawDestroy - CaioMiglioli - 10.06.2012

Fiz um pequeno sistema afk pro RP q to fazendo, mais quando eu ligo o server, aparece a textdraw avisando do modo afk sу uma vez, pq quando eu digito /sairafk, nгo aparece mais pra ngm quando digitam /afk.

detalhe, pra tirar o textdraw to usando o TextDrawDestroy, alguem sabe de algum outro modo q eu possa usar pra tira-lo?

Olhem os comandos
Code:
	if (strcmp("/afk", cmdtext, true, 3) == 0)
	{
		SetPlayerPos(playerid, -786.7418,494.4085,1376.1953);
		TogglePlayerControllable(playerid,false);
		ResetPlayerWeapons(playerid);
		TextDrawShowForPlayer(playerid, Textdraw1);
		TextDrawShowForPlayer(playerid, Textdraw2);
		return 1;
	}
	
	if (strcmp("/sairafk", cmdtext, true, 7) == 0)
	{
        if(IsPlayerInRangeOfPoint(playerid, 3.0, -786.7418,494.4085,1376.1953))
        {
			SetPlayerPos(playerid, -729.276000,503.086944,1371.971801);
			GivePlayerWeapon(playerid, 26, 99999);
			GivePlayerWeapon(playerid, 32, 99999);
			GivePlayerWeapon(playerid, 24, 99999);
			GivePlayerWeapon(playerid, 30, 99999);
			TogglePlayerControllable(playerid,true);
			TextDrawDestroy(Textdraw1);
			TextDrawDestroy(Textdraw2);
		}
		return 1;
	}



Re: [Ajuda] TextDrawDestroy - .FuneraL. - 10.06.2012

pawn Code:
if (strcmp("/sairafk", cmdtext, true, 7) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, -786.7418,494.4085,1376.1953))
        {
            SetPlayerPos(playerid, -729.276000,503.086944,1371.971801);
            GivePlayerWeapon(playerid, 26, 99999);
            GivePlayerWeapon(playerid, 32, 99999);
            GivePlayerWeapon(playerid, 24, 99999);
            GivePlayerWeapon(playerid, 30, 99999);
            TogglePlayerControllable(playerid,true);
            TextDrawHideForPlayer(playerid, Textdraw1);
            TextDrawHideForPlayer(playerid, Textdraw2);
        }
        return 1;
    }
Deste Modo. Tente.


Re: [Ajuda] TextDrawDestroy - Maklister - 10.06.2012

Exato como o Funeral Disse

Pois Quando voce " Destroi " a TextDraw, Voce esta Retirando ele Para nao ser Mostrada mais

Use Set / Hide



Re: [Ajuda] TextDrawDestroy - CaioMiglioli - 10.06.2012

Vlw Funeral, Nгo sabia pra que servia o Hide, achava q era pra adiciona, nгo pra tira LOLOLOLOLOLOLO Soy pika no ingles +Rep manin