SA-MP Forums Archive
Faction Entrance Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Faction Entrance Problem (/showthread.php?tid=200727)



Faction Entrance Problem - djaCido23 - 19.12.2010

Hi...i created an HQ for LCN...but all Famylies can enter in this hq:
pawn Код:
if(strcmp(cmdtext, "/enter", true) == 0)
    {
    if(PlayerInfo[playerid][pMember] >= 5 || PlayerInfo[playerid][pLeader] >= 5)
       {
         if PlayerToPoint(5,playerid,2224.4531,1838.4270,10.8203)
         *then
         {
           SetPlayerPos(playerid,226.5468,1027.7118,1084.0123);
           SetPlayerInterior(playerid,7);
           SetPlayerVirtualWorld(playerid, 3);
           SendClientMessage(playerid,COLOR_1GREEN,"*** Welcome to LCN, The home of HQ !");
           return 1;
         }
        }
    }
Family ID is 5,i have write 5 and same problem...


Re: Faction Entrance Problem - Lorenc_ - 19.12.2010

pawn Код:
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
Im not sure what u mean.


Re: Faction Entrance Problem - Rachael - 19.12.2010

If the family ID is 5, why do you have
pawn Код:
PlayerInfo[playerid][pMember] >= 5
This means family 5, 6, 7, etc can also use the command


Re: Faction Entrance Problem - Mean - 19.12.2010

pawn Код:
if(strcmp(cmdtext, "/enter", true) == 0)
{
    if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
    {
        if(PlayerToPoint(5,playerid,2224.4531,1838.4270,10.8203))
        {
            SetPlayerPos(playerid,226.5468,1027.7118,1084.0123);
            SetPlayerInterior(playerid,7);
            SetPlayerVirtualWorld(playerid, 3);
            SendClientMessage(playerid,COLOR_1GREEN,"*** Welcome to LCN, The home of HQ !");
        }
    }
    return 1;
}