Jail Problem
#8

pawn Код:
if(PlayerInfo[playerid][pJailed] == 1)
                    {
                    switch(WantedLevel[playerid])
                    {
                    case 0 .. 4:
                    {
                            SetPlayerWantedLevel(playerid, 0);
                            SetPlayerInterior(playerid, 0);
                            rand = random(sizeof(gJailSpawnsArmata));
                            SetPlayerPos(playerid, gJailSpawnsArmata[rand][0], gJailSpawnsArmata[rand][1], gJailSpawnsArmata[rand][2]); // Warp the player
                            SendClientMessage(playerid, COLOR_LIGHTRED, "Ai fost arrestat cu wanted 5!si ai fost dus in SF");//edit by u self
                            return 1;
                        }
                        case 5..20://change 20 to the max wanted level.
                        {
                            SetPlayerInterior(playerid, 6);
                            rand = random(sizeof(gJailSpawns));
                            SetPlayerPos(playerid, gJailSpawns[rand][0], gJailSpawns[rand][1], gJailSpawns[rand][2]); // Warp the player
                            SetPlayerWantedLevel(playerid, 0);
                            return 1;
                        }
                    }
                    return 1;
                    }
Reply


Messages In This Thread
Jail Problem - by Akcent_Voltaj - 19.02.2013, 11:26
Re: Jail Problem - by [KHK]Khalid - 19.02.2013, 11:32
Re: Jail Problem - by Akcent_Voltaj - 19.02.2013, 11:35
Re: Jail Problem - by [KHK]Khalid - 19.02.2013, 11:38
Re: Jail Problem - by Akcent_Voltaj - 19.02.2013, 11:49
Re: Jail Problem - by Akcent_Voltaj - 19.02.2013, 12:32
Re: Jail Problem - by Akcent_Voltaj - 19.02.2013, 14:14
Re: Jail Problem - by DaRk_RaiN - 19.02.2013, 14:23
Re: Jail Problem - by Akcent_Voltaj - 19.02.2013, 14:27
Re: Jail Problem - by DaRk_RaiN - 19.02.2013, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)