Help!!
#1

I'm making a dynamic entrance system, it spawns, saves fine, but at my /enter command, they all work until a server restart, and then the one i last made only works.

here is my /enter code.

pawn Код:
for(new i = 0; i < sizeof(Entrances); i++)
            {
                if(IsPlayerInRangeOfPoint(playerid, 3, Entrances[i][tEntranceX], Entrances[i][tEntranceY], Entrances[i][tEntranceZ]))
                {
                    if(Entrances[i][tFaction] == 0)
                    {
                         SetPlayerInterior(playerid,Entrances[i][tExitInt]);
                         SetPlayerPos(playerid,Entrances[i][tExitX],Entrances[i][tExitY],Entrances[i][tExitZ]);
                         PlayerInfo[playerid][pInt] = Entrances[i][tExitInt];
                         return 1;
                    }
                    if(Entrances[i][tFaction] == 1337 && PlayerInfo[playerid][pAdmin] > 0)
                    {
                         SetPlayerInterior(playerid,Entrances[i][tExitInt]);
                         SetPlayerPos(playerid,Entrances[i][tExitX],Entrances[i][tExitY],Entrances[i][tExitZ]);
                         PlayerInfo[playerid][pInt] = Entrances[i][tExitInt];
                         return 1;
                    }
                    if(Entrances[i][tFaction] == 100 && IsACop(playerid))
                    {
                         SetPlayerInterior(playerid,Entrances[i][tExitInt]);
                         SetPlayerPos(playerid,Entrances[i][tExitX],Entrances[i][tExitY],Entrances[i][tExitZ]);
                         PlayerInfo[playerid][pInt] = Entrances[i][tExitInt];
                         return 1;
                    }
                    if(Entrances[i][tFaction] == PlayerInfo[playerid][pMember])
                    {
                    if(Entrances[i][tFaction] == PlayerInfo[playerid][pLeader])
                    {
                         SetPlayerInterior(playerid,Entrances[i][tExitInt]);
                         SetPlayerPos(playerid,Entrances[i][tExitX],Entrances[i][tExitY],Entrances[i][tExitZ]);
                         PlayerInfo[playerid][pInt] = Entrances[i][tExitInt];
                         return 1;
                    }
                    }
                }
            }
Reply


Messages In This Thread
Help!! - by NewYorkRP - 12.12.2010, 10:59
Re: Help!! - by NewYorkRP - 12.12.2010, 11:03
Re: Help!! - by Marcel - 12.12.2010, 11:04
Re: Help!! - by Jochemd - 12.12.2010, 11:05
Re: Help!! - by NewYorkRP - 12.12.2010, 11:07
Re: Help!! - by NewYorkRP - 12.12.2010, 11:09
Re: Help!! - by Marcel - 12.12.2010, 11:11
Re: Help!! - by NewYorkRP - 12.12.2010, 11:13
Re: Help!! - by Marcel - 12.12.2010, 11:16
Re: Help!! - by NewYorkRP - 12.12.2010, 11:19

Forum Jump:


Users browsing this thread: 1 Guest(s)