Making command only for admins help. - 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: Making command only for admins help. (
/showthread.php?tid=352130)
Making command only for admins help. -
Strech - 18.06.2012
CMD:goldrims(playerid, params[])
{
AddVehicleComponent(GetPlayerVehicleID(playerid),1 080);
SendClientMessage(playerid, COLOR_TWAQUA, "Enjoy the goldrims!");
return 1;
}
How to make this CMD working for Rcon admins only?
Re: Making command only for admins help. -
Randy More - 18.06.2012
pawn Код:
CMD:goldrims(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF,"ERROR: You must be logged to the rcon in order to use this command.");
AddVehicleComponent(GetPlayerVehicleID(playerid),1 080);
SendClientMessage(playerid, COLOR_TWAQUA, "Enjoy the goldrims!");
return 1;
}