/God-mode - 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: /God-mode (
/showthread.php?tid=232218)
/God-mode -
Immortal_LTU - 27.02.2011
Hello Guys , can anyone give me /god-mode Script ? Plz
Re: /God-mode -
Gama101 - 27.02.2011
Ye. Put it on public OnPlayerCommandText(playerid, cmdtext[])
(for all players)
Код:
if (strcmp("/god-mode", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 99999);
return 1;
}
(for admins only (rcon admin) )
Код:
if (strcmp("/god-mode", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid)) SetPlayerHealth(playerid, 99999);
else SendClientMessage(playerid, 0xDEEE20FF, "You aren't allowed to use this command");
return 1;
}
Re: /God-mode -
Immortal_LTU - 27.02.2011
Very thanks man !