18.02.2012, 12:10
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
and then GetPlayerName when player connects
and you can use it like
2) instead of using PlayerName stock, you can create 2D array
pawn Code:
new PlayerName[MAX_PLAYERS][MAX_PLAYER_NAME]
pawn Code:
public OnPlayerConnect(playerid)
{
GetPlayerName(playerid, PlayerName[playerid], MAX_PLAYER_NAME);
return 1;
}
pawn Code:
new
string[128];
format(string, sizeof(string), "Administrator %s has frozen %s", PlayerName[playerid], PlayerName[targetid]);
SendClientMessageToAll(SOMECOLOR, string);