[Pedido] Sistema de /cnn em texdrawn
#4

Topo do GM

vocк tera que ter a include Foreach no Pawno .

ai vocк poem no topo do Gm

#include <Foreach>

PHP код:
new Text:CNN[MAX_PLAYERS]; 
PHP код:
forward ApagarTexto(playerid); 
em OnGameModeInit

PHP код:
    for(new i=0i<GetMaxPlayers(); i++)
    {
           
CNN[i] = TextDrawCreate(35.000000152.000000" ");
        
TextDrawBackgroundColor(CNN[i], 255);
        
TextDrawFont(CNN[i], 1);
        
TextDrawLetterSize(CNN[i], 0.3100001.000000);
        
TextDrawColor(CNN[i], -1);
        
TextDrawSetOutline(CNN[i], 1);
        
TextDrawSetProportional(CNN[i], 1);
    } 
PHP код:
if(strcmp(cmd"/cnn"true) == 0)
    {
        new 
aname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridanameMAX_PLAYER_NAME);
        
format(filesizeof(file), PASTA_CONTASaname);
        
strmid(tmpcmdtext4strlen(cmdtext));
        if(!
strlen(tmp))
        {
            
SendClientMessage(playeridVermelho" | ERRO | Use /cnn [Texto] .");
            return 
1;
        }
        for(new 
i=0i<MAX_PLAYERSi++)
        {
            
format(stringsizeof(string), "~g~~h~%s ~p~ (%d): ~w~%s",anamei,tmp);
            
TextDrawSetString(CNN[i], string);
            
TextDrawShowForPlayer(iCNN[i]);
            
SetTimerEx("ApagarTexto",5000,false,"i",i);
        }
           return 
1;
    } 
final do Gm

PHP код:
public ApagarTexto()
{
    foreach(
Player,i)
    {
        
TextDrawHideForPlayer(iCNN[i]);
    }
    return 
1;

Reply


Messages In This Thread
Sistema de /cnn em texdrawn - by BHTMestre - 19.04.2014, 22:15
Re: Sistema de /cnn em texdrawn - by lKoDlFuLLaNNo - 19.04.2014, 23:34
Re: Sistema de /cnn em texdrawn - by BHTMestre - 20.04.2014, 00:14
Re: Sistema de /cnn em texdrawn - by yNexus - 20.04.2014, 00:29
Re: Sistema de /cnn em texdrawn - by BHTMestre - 20.04.2014, 00:42
Re: Sistema de /cnn em texdrawn - by lKoDlFuLLaNNo - 20.04.2014, 00:47
Re: Sistema de /cnn em texdrawn - by williamgato - 20.04.2014, 00:54
Re: Sistema de /cnn em texdrawn - by lKoDlFuLLaNNo - 20.04.2014, 01:09
Re: Sistema de /cnn em texdrawn - by DannielCooper - 20.04.2014, 03:43

Forum Jump:


Users browsing this thread: 3 Guest(s)