Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:ao(playerid, params[])
- {
- new Anuncio[128], String[128];
- new NomeAAV[MAX_PLAYER_NAME];
- GetPlayerName(playerid,NomeAAV,sizeof(NomeAAV));
- if(AdminInfo[playerid] == jAdmin){
- if (APlayerData[playerid][LoggedIn] == false) return 0;
- if(APlayerData[playerid][PlayerLevel] < 4) return 0;
- if(sscanf(params, "s[150]", Anuncio)) return SendClientMessage(playerid, 0xFF0000FF, "Use: /ao [mensagem]");
- if(strlen(Anuncio) > 70) return SendClientMessage(playerid,0xFF0000FF,"O máximo de caracteres permitido é 70!");
- else
- {
- for (new i; i < MAX_PLAYERS; i++)
- {
- format(String, sizeof(String),"~b~~h~~h~~h~%s:~n~~w~%s", NomeAAV, Anuncio);
- GameTextForAll(String, 3000, 5);
- }
- }
- format(String, sizeof(String), "{FFE4C4}* %s anuncio: %s *", NomeAAV, Anuncio);
- SendClientMessageToAll(-1, String);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment