[Ajuda] Anuncio
#1

Criei um comando de anuncio in-game, mais ele nгo tб funcionando corretamente como eu queria, bom se eu entro no servidor e digito /anuncio1 <msg = teste> <tempo = 5(segundos)> aparece a mensagem rapidamente e sai, mais se uso 5000 no tempo aparece por 5 segundos, queria saber como posso colocar para anunciar em segundos, exemplo 10 = anuncia por 10 segundos, etc.

Cуdigo:

pawn Код:
CMD:anuncio1(playerid,params[])
{
    new tempo,msg[150];
    new string[150];
    if(playerinfo[playerid][Admin] < 1) return SendClientMessage(playerid,branco,"SERVER: Unknown command.");
    if(sscanf(params,"s[150]d",msg,tempo)) return SendClientMessage(playerid,yellow,"Use: /anuncio1 <texto> <tempo>");
    format(string,sizeof(string),"%s",msg);
    GameTextForAll(string,tempo,3);
    return 1;
}
Reply


Messages In This Thread
Anuncio - by s4kuL - 07.09.2012, 14:47
Re: Anuncio - by paulor - 07.09.2012, 14:58
Re: Anuncio - by s4kuL - 07.09.2012, 15:04
Re: Anuncio - by paulor - 07.09.2012, 15:07
Re: Anuncio - by s4kuL - 07.09.2012, 15:16
Re: Anuncio - by humildadeforever - 07.09.2012, 15:28
Re: Anuncio - by s4kuL - 07.09.2012, 15:33
Re: Anuncio - by FeelLikeASir_ - 07.09.2012, 15:45

Forum Jump:


Users browsing this thread: 2 Guest(s)