14.09.2009, 16:57
Okay, I now got at the top
forward tkjail(playerid);
new bool:PlayerInPrison[MAX_PLAYERS];
When getting jailed:
PlayerInPrison[playerid] = true;
OnPlayerCommandText:
if (PlayerInPrison[playerid] == 1)
{
return 0;
}
And when released:
public tkjail(playerid)
{
SetPlayerHealth(playerid,0.0);
PlayerInPrison[playerid] = false;
}
But you dont get released! D: Why?
forward tkjail(playerid);
new bool:PlayerInPrison[MAX_PLAYERS];
When getting jailed:
PlayerInPrison[playerid] = true;
OnPlayerCommandText:
if (PlayerInPrison[playerid] == 1)
{
return 0;
}
And when released:
public tkjail(playerid)
{
SetPlayerHealth(playerid,0.0);
PlayerInPrison[playerid] = false;
}
But you dont get released! D: Why?

