How to make a commands to requre /rcon login ?
#1

How to do this ?
Reply
#2

pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be RCON");
Reply
#3

Are you using a command processor like zcmd or strcmp
Ill give you a god mode cmd using zcmd to help you
pawn Код:
CMD:godmode(pid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be an RCON administrator to use this command!");// if player is not RCON admin sends him this message else executes the code.
{
SetPlayerHealth(pid, 999999);
SendClientMessage(pid, -1,"God Mode {00FF00}On");
}
return 1;
}
Reply
#4

Quote:
Originally Posted by kingofdemons
Посмотреть сообщение
Are you using a command processor like zcmd or strcmp
Ill give you a god mode cmd using zcmd to help you
pawn Код:
CMD:godmode(pid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be an RCON administrator to use this command!");// if player is not RCON admin sends him this message else executes the code.
{
SetPlayerHealth(pid, 999999);
SendClientMessage(pid, -1,"God Mode {00FF00}On");
}
return 1;
}
Acctualy, the right code is
pawn Код:
CMD:godmode(pid,params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be an RCON administrator to use this command!");// if player is not RCON admin sends him this message else executes the code.
    SetPlayerHealth(pid, 999999);
    SendClientMessage(pid, -1,"God Mode {00FF00}On");
    return 1;
}
but as you can see, Mr.Prodigy already gave him correct code.
Reply


Forum Jump:


Users browsing this thread: