How to make a commands to requre /rcon login ? - 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: How to make a commands to requre /rcon login ? (
/showthread.php?tid=456768)
How to make a commands to requre /rcon login ? -
bustern - 07.08.2013
How to do this ?
Re: How to make a commands to requre /rcon login ? -
-Prodigy- - 07.08.2013
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be RCON");
Re: How to make a commands to requre /rcon login ? -
kingofdemons - 07.08.2013
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;
}
Re: How to make a commands to requre /rcon login ? -
Amel_PAtomAXx - 07.08.2013
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.