SA-MP Forums Archive
Rcon cmds - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Rcon cmds (/showthread.php?tid=656215)



Rcon cmds - Jaua10 - 10.07.2018

Excuse me guys how can i do to make a cmd works without being admin /rcon login ? i mean how can i edit the cmd to just if i am admin lvl 2 you can use it no need to be logged in to rcon. thanks in advance


Re: Rcon cmds - JasonRiggs - 10.07.2018

Try SendRconCommand in script, You can find details here


Re: Rcon cmds - Jaua10 - 10.07.2018

solved


Re: Rcon cmds - Jaua10 - 10.07.2018

my commands all work good but i only need to log in rcon to use it and i dont want it i would like to remove it


Re: Rcon cmds - Mike861 - 10.07.2018

Quote:
Originally Posted by Jaua10
Посмотреть сообщение
my commands all work good but i only need to log in rcon to use it and i dont want it i would like to remove it
Do you have an admin system and how are you declaring it?


Re: Rcon cmds - Jaua10 - 10.07.2018

yes i have a simple basic admin system, what do you men how are declaring what?


Re: Rcon cmds - Mike861 - 10.07.2018

Do you have PlayerInfo[playerid][pInfo];


Re: Rcon cmds - ItsRobinson - 10.07.2018

IsPlayerAdmin is a SAMP check to see if a player is rcon admin, so if you're not logged in, it's not going to work.

Like Mike861 said, you'll need to create an admin system.


Re: Rcon cmds - Jaua10 - 10.07.2018

YES I HAVE pInfo like this

PHP код:
enum pInfo
{
    
pPass,
    
pCash,
    
pSkin,
    
pLevel,
    
pInt,
    
pVW,
    
pAdmin,
    
pSecKey,
    
pKills,
    
pDeaths,
    
Float:pFacingAngle,
    
Float:pHealth,
    
Float:pArmour,
    
Float:pLastX,
    
Float:pLastY,
    
Float:pLastZ
}
new 
PlayerInfo[MAX_PLAYERS][pInfo]; 
works?


Re: Rcon cmds - Mike861 - 10.07.2018

Instead of if(!IsPlayerAdmin(playerid)) {return 0;} do if(PlayerInfo[playerid][pAdmin] > 0) {return 0;}