Posts: 1,648
Threads: 482
Joined: Jun 2010
pawn Код:
for(new p = 0; p < MAX_PLAYERS; p++)
{
if(LoggedIn[p] == 1 && IsPlayerConnected(p))
{
if(AdminJail[p] >= 1 && AdminJail[p] != 0)
{
AdminJail[p] --;
format(string, sizeof(string), "You have %d minute(s) left in Admin Jail.", AdminJail[p]);
SendClientMessage(p, COLOUR_GREY, string);
if(AdminJail[p] == 0)
{
SendClientMessage(p, COLOUR_LIGHTBLUE, "You have been released from Admin Jail");
MySQL_SetInteger(PlayerSQLID[p], "AdminJail", -1, "accounts");
AdminJail[p] = -1;
SetPlayerPos(p, -216.0915,972.2845,19.3201);
SetPlayerVirtualWorld(p, 0);
SetPlayerInterior(p, 0);
SetCameraBehindPlayer(p);//release.
}
}
}
}
This may seem like a stupid question, but when the timer reaches 0, it still sends a client message and I've no idea why. Could someone tell me what I'm doing wrong?
Posts: 1,648
Threads: 482
Joined: Jun 2010
Ahh thank you.
I have another question....
in
OnGameModeInit sometimes various textdraws don't load, sometimes. Is there any reason for this? Usually they always do, sometimes they don't.
Posts: 1,648
Threads: 482
Joined: Jun 2010
That didn't fix it, I'm afraid.
Posts: 1,648
Threads: 482
Joined: Jun 2010
Global time, I know...
Yeah that's what it originally was. It didn't work.
Posts: 1,648
Threads: 482
Joined: Jun 2010
Posts: 1,648
Threads: 482
Joined: Jun 2010