Advertisement
kennedyarz

funcion ban

Mar 28th, 2016
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. {
  2. if ( cmd == "ban" )
  3. {
  4. if ( player.Name == "kennedyarz" )
  5. {
  6. if ( text )
  7. {
  8. local plr = FindPlayer( text );
  9. if ( plr )
  10. {
  11. Message( "[#AC9000][BANNED] ADMIN [#ffffff][ " + player.Name + " ] [#ff1111]Banned [#ffffff][ " + player.Name + " ] " )
  12. BanPlayer( plr );
  13. }
  14. else MessagePlayer( "[#ffffff]Invalid Player " , player );
  15. }
  16. else MessagePlayer( "[#ffffff]Type /ban <player> " , player );
  17. }
  18. else MessagePlayer( "[#F02F0F] comando utilizado por admin nivel [#ac9000][:::#3#:::]. " , player )
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement