Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:unlockserver( playerid, params[] ) {
- if( IsPlayerConnected( playerid ))
- {
- if( PlayerInfo[ playerid ][ xAdmin ] > 6) return GRESKA(playerid, "[Info]Nemas Dozvolu za koriscenje ove komande!");
- {
- SendRconCommand("password ");
- Info(playerid, "[UnLock]Server uspesno Otkljucan");
- }
- }
- return true;
- }
- CMD:lockserver( playerid, params[] ) {
- if( IsPlayerConnected( playerid ))
- {
- if( PlayerInfo[ playerid ][ xAdmin ] > 6 )
- {
- new pw[ 128 ];
- if( sscanf( params, "s[128]", pw )) return KORISCENJE( playerid, "[Info]/zakljucajserver (password)" );
- new musk[ 150 ];
- format( musk, 150, "password %s",pw );
- SendRconCommand( musk );
- Info( playerid, "[Lock]Server je zakljucan, nova sifra je: %s" ,pw );
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement