Automatic Jail
#2

Код:
public OnPlayerRequestSpawn(playerid)
{
    if(PlayerInfo[playerid][pJail] == 1)   <--------- not 0 but 1 !!!
     {
       new str[128];
       new pname[MAX_PLAYER_NAME],time;
       GetPlayerName(playerid, pname,MAX_PLAYER_NAME);
       format(str, sizeof(str), "%s has been autojailed <Reason: Jailed Evading>",pname);
       SendClientMessageToAll(COLOR_RED, str);
       SendClientMessage(playerid,COLOR_RED,"You cannot evade escaping from Jailed. You have been automatic jailed");
       SetPlayerInterior(playerid, 3);
       SetPlayerPos(playerid, 198.5319,162.3093,1003.0300);
       SetTimerEx("UnjailTime", time*1000, 0, "%d", playerid);
       PlayerInfo[pid][pJail] = 1;  <--------------- ADD THIS
    }
    return 1;
}
Reply


Messages In This Thread
Automatic Jail - by GAMER_PS2 - 10.11.2011, 03:13
Re: Automatic Jail - by Saurik - 10.11.2011, 03:35
Re: Automatic Jail - by GAMER_PS2 - 10.11.2011, 04:21
Re: Automatic Jail - by Saurik - 10.11.2011, 04:30
Re: Automatic Jail - by GAMER_PS2 - 10.11.2011, 04:35
Re: Automatic Jail - by Norn - 10.11.2011, 04:44
Re: Automatic Jail - by Saurik - 10.11.2011, 04:46
Re: Automatic Jail - by GAMER_PS2 - 10.11.2011, 05:01
Re: Automatic Jail - by Norn - 10.11.2011, 05:03
Re: Automatic Jail - by GAMER_PS2 - 10.11.2011, 05:08

Forum Jump:


Users browsing this thread: 1 Guest(s)