26.03.2012, 19:52
Hello !
First ,sorry for my bad English , I'm french
I've got a problem in my script :
This script is a jail script, when an Admin type "/jail [ID] [Time] [Reason]", It jail the person for x seconds normally
But It didn't Unjail... Why?
And, when the "Jailled" person disconnect and reconnect, He's not in jail...
How I Can do ?
Thanks !
First ,sorry for my bad English , I'm french

I've got a problem in my script :
Код:
//Commande JAIL
new pid; //Joueur ban
CMD:jail(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new Raison[60]; // Raison
new Temps
new string[150],name[25],NameAdmin[25];
if(sscanf(params,"ufs",pid,Temps,Raison))
{
SendClientMessage(playerid,Color_Red,"Usage: /jail [ID] [Temps] [Raison]");
}
else
{
GetPlayerName(pid,name,20);
GetPlayerName(playerid,NameAdmin,20);
format(string,sizeof(string),"%s a йtй jail par %s pour %f ! (Raison : %s)",name,NameAdmin,Temps,Raison);
SendClientMessageToAll(Color_Red,string)
SetPlayerPos(pid,2458.89990234,-1623.40002441,1015.38);
TogglePlayerControllable(pid, 0);
SetTimer("TimerJail", Temps, 0);
}
}
return 0
}
public TimerJail()
{
SetPlayerPos(pid,1742.07, -1863.63, 13.57);
TogglePlayerControllable(pid, 1)
GameTextForPlayer(pid, "Vous etes libre, evitez maintenant d'enfreindre les regles", 3000, 3);
}
//Fin Commande Jail
But It didn't Unjail... Why?
And, when the "Jailled" person disconnect and reconnect, He's not in jail...
How I Can do ?
Thanks !


