Advertisement
Guest User

Untitled

a guest
Aug 24th, 2011
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. pawn Code:
  2. 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;}}
  3. ANUNCIAR
  4.  
  5. pawn Code:
  6. 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; } }
  7. DOMINIOSAMP.BLOGSPOT.COM Jao_Leao
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement