08.03.2014, 15:41
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(PlayerToKick == playerid)
{
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{C14124}%s {BBBBBB}exited the server, so the votekick has been closed automatically.", name);
SendClientMessageToAll(COLOR_OK, string);
new Yes = 0, No = 0, PlayerToKick = -1, seconds = 60, IsVoteKickStarted = false;
TextDrawHideForAll(Background);
TextDrawHideForAll(VoteKickTitle);
TextDrawHideForAll(VoteKickName);
TextDrawHideForAll(VoteKickVote);
TextDrawSetString(VoteKickVote,"~g~~h~Yes~w~: 0 ~r~No~w~: 0");
TextDrawHideForAll(VoteKickTime);
}
}