Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2019
552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. CMD:unlockserver( playerid, params[] ) {
  2. if( IsPlayerConnected( playerid ))
  3. {
  4. if( PlayerInfo[ playerid ][ xAdmin ] > 6) return GRESKA(playerid, "[Info]Nemas Dozvolu za koriscenje ove komande!");
  5. {
  6. SendRconCommand("password ");
  7. Info(playerid, "[UnLock]Server uspesno Otkljucan");
  8. }
  9. }
  10. return true;
  11. }
  12.  
  13.  
  14. CMD:lockserver( playerid, params[] ) {
  15. if( IsPlayerConnected( playerid ))
  16. {
  17. if( PlayerInfo[ playerid ][ xAdmin ] > 6 )
  18. {
  19. new pw[ 128 ];
  20. if( sscanf( params, "s[128]", pw )) return KORISCENJE( playerid, "[Info]/zakljucajserver (password)" );
  21. new musk[ 150 ];
  22. format( musk, 150, "password %s",pw );
  23. SendRconCommand( musk );
  24. Info( playerid, "[Lock]Server je zakljucan, nova sifra je: %s" ,pw );
  25. }
  26. }
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement