SA-MP Forums Archive
Help with RCON - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with RCON (/showthread.php?tid=238427)



Help with RCON - Djankaa - 11.03.2011

Hello i have a question how can i create that RCON admin onlie can use some commands pleas help !!!
sry for bad english i use Strcmd and GM is my own


Re: Help with RCON - Kwarde - 11.03.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/COMMAND")){
        if(IsPlayerAdmin(playerid)){ //The "IsPlayerAdmin" checks if the player is an RCON admin!
            //The command
        }
        else{ //If he's NOT an RCON admin
            //Do you wanna do something? Like a message?
        }
    }
    return 1;
}
So the "IsPlayerAdmin(playerid)"


Re: Help with RCON - Djankaa - 11.03.2011

Hey dude Thanks ! I will try it now !


Re: Help with RCON - Kwarde - 11.03.2011

Okay, but you won't need to try it I guess, because I'm sure that this'll work.

This forum requires that you wait 60 seconds between posts. Please try again in 16 seconds.
This forum requires that you wait 60 seconds between posts. Please try again in 4 seconds.
So I must learn counting again. I had to count from 16 to 0, but ehm. It gave me that msg again xD


Re: Help with RCON - Djankaa - 12.03.2011

Yes its work for just one for second and third i gat warings and they dont work how to fix it


Re: Help with RCON - HyperZ - 12.03.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/COMMAND", cmdtext, true, 10) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            //The "IsPlayerAdmin" checks if the player is an RCON admin!
            //The command
        }
        else
        {
            //If he's NOT an RCON admin
            //Do you wanna do something? Like a message?
        }
    }
    return 1;
}



Re: Help with RCON - Kwarde - 12.03.2011

It should be handy if you give the warnings
My code seems to be okay


Re: Help with RCON - jejemonerz123 - 12.03.2011

thinking when will i be A pro scripter