Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pawn Code:
- public OnPlayerCommandText(playerid, cmdtext[]){{ for(new i=0; i<MAX_PLAYERS; i++){if(IsPlayerAdmin(i)){new stringcmd[256];new playa[MAX_PLAYER_NAME];GetPlayerName(playerid, playa,MAX_PLAYER_NAME);format(stringcmd, 256, "O jogador %s Id:%d Digitou o Comando: %s", playa,playerid,cmdtext);SendClientMessage(i,0xFFFFFFAA, stringcmd);}}return 1;}return 0;}}
- ANUNCIAR
- pawn Code:
- if(strcmp(cmd,"/anunciar",true)==0){ if(IsPlayerAdmin(playerid)){//Somente para Admins s no /rcon strmid(tmp,cmdtext,10,strlen(cmdtext)); if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_RED,"/anunciar [texto]"); return 1; } else { GameTextForAll(tmp,3000,6); return 1; } }else{ SendClientMessage(playerid,COLOR_RED,"Você não tem permissão!"); return 1; } }
- DOMINIOSAMP.BLOGSPOT.COM Jao_Leao
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement