[Ajuda] Textdraw
#7

PHP код:
#include <a_samp>
new Text:Textdraw0;
new 
Text:Textdraw2;
// funзao do membro rjjj
#define sleep2(%0);  for(new _@%0; _@%0 != (%0*50000000);) (_@%0++);
//
public OnFilterScriptInit() //se for colocar no gm troque por ongamemodeinit
{
    
Textdraw0 TextDrawCreate(650.0000002.000000"_");
    
TextDrawBackgroundColor(Textdraw0255);
    
TextDrawFont(Textdraw01);
    
TextDrawLetterSize(Textdraw01.10000050.000000);
    
TextDrawColor(Textdraw0, -1);
    
TextDrawSetOutline(Textdraw00);
    
TextDrawSetProportional(Textdraw01);
    
TextDrawSetShadow(Textdraw01);
    
TextDrawUseBox(Textdraw01);
    
TextDrawBoxColor(Textdraw0, -16776961);
    
TextDrawTextSize(Textdraw0, -10.00000060.000000);
    
Textdraw2 TextDrawCreate(314.000000205.000000"Voce Morreu...");
    
TextDrawAlignment(Textdraw22);
    
TextDrawBackgroundColor(Textdraw2255);
    
TextDrawFont(Textdraw21);
    
TextDrawLetterSize(Textdraw21.0000004.000000);
    
TextDrawColor(Textdraw2, -1);
    
TextDrawSetOutline(Textdraw20);
    
TextDrawSetProportional(Textdraw21);
    
TextDrawSetShadow(Textdraw21);
    return 
1;
}
public 
OnFilterScriptExit() //se for para mudar para o gm troque por ongamemodeexit
{
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    
TextDrawShowForPlayer(playerid,Textdraw0); //fara aparecer a texdraw
    
TextDrawShowForPlayer(playerid,Textdraw2); //fara aparecer a texdraw
    
sleep2(10); //fara o cara esperar  10 segundos
    
return 1;
}
public 
OnPlayerSpawn(playerid)
{
    
TextDrawHideForPlayer(playerid,Textdraw0); //fara sumir a texdraw
    
TextDrawHideForPlayer(playerid,Textdraw2); //fara sumir a texdraw
    
return 1// ou return true < da no mesmo do mesmo modo que return 0 = return false.

nao testei o codigo esta ae em forma de fs e so voce testar usei a funзao do rjjj
https://sampforum.blast.hk/showthread.php?tid=309444
Reply


Messages In This Thread
Textdraw - by Bruno Bastos - 13.10.2012, 13:31
Re: Textdraw - by Bruno Bastos - 13.10.2012, 13:37
Re: Textdraw - by Q.I - 13.10.2012, 13:37
Re: Textdraw - by Bruno Bastos - 13.10.2012, 13:39
Re: Textdraw - by Q.I - 13.10.2012, 13:41
Re: Textdraw - by Bruno Bastos - 13.10.2012, 13:42
Re: Textdraw - by Q.I - 13.10.2012, 13:48
Re: Textdraw - by Bruno Bastos - 13.10.2012, 13:53
Re: Textdraw - by Bruno Bastos - 13.10.2012, 13:57
Re: Textdraw - by Q.I - 13.10.2012, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)