12.12.2011, 03:34
I made a command where you do /godp and it gives the player god mode. How can i make it so when i give another player god it says on my screen:
You have given Player (1) god mode.
Then on his screen it says Player (2) has given you god mode.
Then if i type it again /godp it shuts it off. Player (2) has disabled your god mode. You have Disabled Player (1) god mode.
Im new to zcmd so im still learning.
Red: admin
Green: player
Here is my code so far.
You have given Player (1) god mode.
Then on his screen it says Player (2) has given you god mode.
Then if i type it again /godp it shuts it off. Player (2) has disabled your god mode. You have Disabled Player (1) god mode.
Im new to zcmd so im still learning.
Red: admin
Green: player
Here is my code so far.
pawn Код:
CMD:godp(playerid,params[])
{
new pname[24], targetid, string[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "SERVER: Unknown Command.");
if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,-1,"USAGE: /godp [playerid]");
SetPlayerHealth(targetid,100000);
return 1;
}