/God-mode
#1

Hello Guys , can anyone give me /god-mode Script ? Plz
Reply
#2

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;
	}
Reply
#3

Very thanks man !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)