Jail Problem
#1

so i want if bigger wanted then 5 to send me at army jail..if smaller send me to lspd jail...but doesent work..
Quote:

public SetPlayerSpawn(playerid)
{

PHP код:
if(PlayerInfo[playerid][pJailed] == 1)
                    {
                        if(
WantedLevel[playerid] >= 5)
                        {
                            
SetPlayerWantedLevel(playerid0);
                            
SetPlayerInterior(playerid0);
                            
rand random(sizeof(gJailSpawnsArmata));
                            
SetPlayerPos(playeridgJailSpawnsArmata[rand][0], gJailSpawnsArmata[rand][1], gJailSpawnsArmata[rand][2]); // Warp the player
                            
SendClientMessage(playeridCOLOR_LIGHTRED"Ai fost arrestat cu wanted 5!si ai fost dus in SF");//edit by u self
                            
return 1;
                        }
                        else if(
WantedLevel[playerid] < 5)
                        {
                            
SetPlayerInterior(playerid6);
                            
rand random(sizeof(gJailSpawns));
                            
SetPlayerPos(playeridgJailSpawns[rand][0], gJailSpawns[rand][1], gJailSpawns[rand][2]); // Warp the player
                            
SetPlayerWantedLevel(playerid0);
                            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)