zcmd help
#1

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.

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


Messages In This Thread
zcmd help - by SnG.Scot_MisCuDI - 12.12.2011, 03:34
Re: zcmd help - by Ironboy - 12.12.2011, 03:38
Re: zcmd help - by SnG.Scot_MisCuDI - 12.12.2011, 03:45
Re: zcmd help - by Ironboy - 12.12.2011, 03:47
Re: zcmd help - by SnG.Scot_MisCuDI - 12.12.2011, 03:51
Re: zcmd help - by Ironboy - 12.12.2011, 03:54
Re: zcmd help - by SnG.Scot_MisCuDI - 12.12.2011, 04:53
Re: zcmd help - by Ironboy - 12.12.2011, 04:58
Re: zcmd help - by SnG.Scot_MisCuDI - 12.12.2011, 05:02
Re: zcmd help - by Ironboy - 12.12.2011, 05:05

Forum Jump:


Users browsing this thread: 1 Guest(s)