04.01.2014, 15:49
Alguem ai tem um codigo de /anuncio para servidor rpg simples nгo precisa ter muita coisa sу aparecer que mandou anuncio de ls e o custo sу isso.
new timerAnuncio;
new str[128];
if ( !strcmp(cmdtext, "/anuncio") || !strcmp(cmdtext, "/an") ) {
if ( timerAnuncio < gettime() ) {
format (str, sizeof str, "Um anъncio foi mandado recentemente! Aguarde %i segundos para mandar o seu!", (gettime() - timerAnuncio) );
SendClientMessage(playerid, -1, str);
return 1;
}
if ( strlen(cmdtext) <= 9 )
return SendClientMessage(playerid, -1, "Uso correto: /anuncio [mensagem]");
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format (str, sizeof str, "Anъncio de %s: %s", Nome, cmdtext[9]);
SendClientMessageToAll(-1, str);
timerAnuncio = gettime() + 30;
return 1;
}
new timerAnuncio;
new str[128];