[Tutorial] ZCMD - Commands collection [PART 1]
#7

1) also check if player is actually frozen, before the "unfreeze" command is done.
2) instead of using PlayerName stock, you can create 2D array
pawn Code:
new PlayerName[MAX_PLAYERS][MAX_PLAYER_NAME]
and then GetPlayerName when player connects
pawn Code:
public OnPlayerConnect(playerid)
{
    GetPlayerName(playerid, PlayerName[playerid], MAX_PLAYER_NAME);
    return 1;
}
and you can use it like
pawn Code:
new
     string[128];
format(string, sizeof(string), "Administrator %s has frozen %s", PlayerName[playerid], PlayerName[targetid]);
SendClientMessageToAll(SOMECOLOR, string);
Reply


Messages In This Thread
ZCMD - Commands collection [PART 1] - by Twisted_Insane - 17.02.2012, 15:39
Re: ZCMD - Commands collection [PART 1] - by Konstantinos - 17.02.2012, 15:52
Re: ZCMD - Commands collection [PART 1] - by Mr.Fames - 17.02.2012, 15:57
Re: ZCMD - Commands collection [PART 1] - by Twisted_Insane - 17.02.2012, 18:29
Re: ZCMD - Commands collection [PART 1] - by [ABK]Antonio - 18.02.2012, 10:45
Re: ZCMD - Commands collection [PART 1] - by Twisted_Insane - 18.02.2012, 11:11
Re: ZCMD - Commands collection [PART 1] - by [Diablo] - 18.02.2012, 12:10
Re: ZCMD - Commands collection [PART 1] - by Twisted_Insane - 18.02.2012, 13:12
Re: ZCMD - Commands collection [PART 1] - by Twisted_Insane - 25.02.2012, 18:49
Re: ZCMD - Commands collection [PART 1] - by Karl[NDZ] - 20.03.2012, 14:00
Re: ZCMD - Commands collection [PART 1] - by Twisted_Insane - 20.03.2012, 14:07
Re: ZCMD - Commands collection [PART 1] - by Wickeed - 01.04.2012, 20:31
Re: ZCMD - Commands collection [PART 1] - by Twisted_Insane - 01.04.2012, 21:05
Re: ZCMD - Commands collection [PART 1] - by Ash. - 01.04.2012, 21:12
Re: ZCMD - Commands collection [PART 1] - by Twisted_Insane - 01.04.2012, 21:34
Re: ZCMD - Commands collection [PART 1] - by StrangeLove - 28.05.2012, 12:35
Re: ZCMD - Commands collection [PART 1] - by gnoomen2 - 07.08.2012, 00:13
Re: ZCMD - Commands collection [PART 1] - by gnoomen2 - 07.08.2012, 17:53
Re: ZCMD - Commands collection [PART 1] - by Diogo123 - 27.08.2012, 23:21
Re: ZCMD - Commands collection [PART 1] - by Chu - 25.09.2013, 06:49
Re: ZCMD - Commands collection [PART 1] - by Jhony_Blaze - 16.12.2014, 20:32
Re: ZCMD - Commands collection [PART 1] - by Arastair - 18.12.2014, 08:28
Re: ZCMD - Commands collection [PART 1] - by dopeboy1040 - 03.04.2017, 14:58
Re: ZCMD - Commands collection [PART 1] - by Variable™ - 04.04.2017, 12:00

Forum Jump:


Users browsing this thread: 4 Guest(s)