[Pedido] Ann com TextDraw
#10

PHP код:
#include a_samp
#include foreach
#include zcmd
#include sscanf
new Text:TextoDraw;
forward DestruirTextoDraw();
CMD:anunciar(playeridparams[])
{
    new 
Anuncio[128];
    new 
String[128];
     if(
sscanf(params"s"Anuncio)) return SendClientMessage(playerid, -1"Use: /anunciar [mensagem]");
     if(
strlen(Anuncio) > 40) return SendClientMessage(playerid,-1,"O mбximo de caracteres permitido й 40");
     new 
Nome[MAX_PLAYER_NAME];
     
GetPlayerName(playerid,Nome,sizeof(Nome));
     
format(String,sizeof(String),"Admin %s: ~y~%s"NomeAnuncio);
     
TextoDraw TextDrawCreate(325.000000394.000000String);
     
TextDrawAlignment(TextoDraw2);
     
TextDrawBackgroundColor(TextoDraw255);
     
TextDrawFont(TextoDraw1);
     
TextDrawLetterSize(TextoDraw0.3999993.199999);
     
TextDrawColor(TextoDraw16711935);
     
TextDrawSetOutline(TextoDraw1);
     
TextDrawSetProportional(TextoDraw1);
     foreach (new 
Player)
     {
         
TextDrawShowForPlayer(iTextoDraw);
    }
     
SetTimer("DestruirTextoDraw",5000false);
     return 
true;
}
public 
DestruirTextoDraw()
{
    
TextDrawHideForAll(TextoDraw);
    return 
true;

Reply


Messages In This Thread
[Pedido] Ann com TextDraw - by Lucas_HenryK - 10.04.2012, 23:10
Re: [Pedido] Ann com TextDraw - by Ricop522 - 10.04.2012, 23:22
Re: [Pedido] Ann com TextDraw - by Lucas_HenryK - 10.04.2012, 23:27
Re: [Pedido] Ann com TextDraw - by Ricop522 - 10.04.2012, 23:47
Re: [Pedido] Ann com TextDraw - by Lucas_HenryK - 10.04.2012, 23:50
Re: [Pedido] Ann com TextDraw - by Delete_ - 10.04.2012, 23:52
Re: [Pedido] Ann com TextDraw - by Ricop522 - 10.04.2012, 23:52
Re: [Pedido] Ann com TextDraw - by Edu33 - 11.04.2012, 00:45
Re: [Pedido] Ann com TextDraw - by Lucas_HenryK - 11.04.2012, 01:04
Re: [Pedido] Ann com TextDraw - by GReeN_WOoD - 11.04.2012, 01:27

Forum Jump:


Users browsing this thread: 1 Guest(s)