Automatic Jail
#10

i'm using admin system

my gamemode code:

pawn Код:
public OnPlayerSpawn(playerid)
{
   GangZoneShowForPlayer(playerid, BallasZone, -2147418167);
   GangZoneShowForPlayer(playerid, BallasZone2, -2147418167);
   GangZoneShowForPlayer(playerid, GroveZone, 16711888);
   GangZoneShowForPlayer(playerid, GroveZone2, 16711888);
   GangZoneShowForPlayer(playerid, VagosZone, -65332);
   GangZoneShowForPlayer(playerid, VagosZone2, -65332);
   GangZoneShowForPlayer(playerid, VagosZone3, -65332);
   GangZoneShowForPlayer(playerid, AztecasZone, 1538909898);

//============================================================================//

   TextDrawHideForPlayer(playerid, BallasTittle);
   TextDrawHideForPlayer(playerid, BallasWeap1);
   TextDrawHideForPlayer(playerid, BallasWeap2);
   TextDrawHideForPlayer(playerid, BallasWeap3);
   TextDrawHideForPlayer(playerid, BallasWeap4);
   TextDrawHideForPlayer(playerid, GroveTittle);
   TextDrawHideForPlayer(playerid, GroveWeap1);
   TextDrawHideForPlayer(playerid, GroveWeap2);
   TextDrawHideForPlayer(playerid, GroveWeap3);
   TextDrawHideForPlayer(playerid, GroveWeap4);
   TextDrawHideForPlayer(playerid, VagosTittle);
   TextDrawHideForPlayer(playerid, VagosWeap1);
   TextDrawHideForPlayer(playerid, VagosWeap2);
   TextDrawHideForPlayer(playerid, VagosWeap3);
   TextDrawHideForPlayer(playerid, VagosWeap4);
   
//============================================================================//
   
   SetPlayerMapIcon(playerid,0,1914.0652,-1731.5297,13.4226,19,1,MAPICON_LOCAL); //Ballas Mapicon

//============================================================================//

   SetPlayerArmour(playerid, 100);
   SetPlayerHealth(playerid, 100);
   SetCameraBehindPlayer(playerid);
   GivePlayerWeapon(playerid, 5,1);
   SetPVarInt(playerid, "AFK", 0);
   SetPlayerVirtualWorld(playerid,0);
   PlayerPlaySound(playerid, 1186,-119.9460,23.1096,12.2238);
   return 1;
}
and the code of my admin system spawn

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(PlayerInfo[playerid][pJail] == 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[playerid][pJail] = 1;
    }
    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: 5 Guest(s)