SA-MP Forums Archive
PPC_Business - 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)
+--- Thread: PPC_Business (/showthread.php?tid=331267)



PPC_Business - Sami Ham - 04.04.2012

as all know the powerpc603 didnt log in from 9/1/2012
and now i need somehelp about his business system
if u dont know it here https://sampforum.blast.hk/showthread.php?tid=285406
its only let the owner enter the business but how i can make it to let evreybody to enter not only owner??


""srry for my bad english cuz iam arabic""


Re: PPC_Business - Sami Ham - 04.04.2012

no one can help me?


Re: PPC_Business - Mr.Faqahat - 04.04.2012

Please some one tell i also want to know it


Re: PPC_Business - jeffery30162 - 24.06.2012

meh too


Re: PPC_Business - navroopsingh - 30.01.2013

Replace the enter commands with this, delete the enter command and put this and complie!

Код:
COMMAND:enter(playerid, params[])
{
    // If a player hasn't logged in properly, he cannot use this command
    if (INT_IsPlayerLoggedIn(playerid) == 0) return 0;
    
    // Setup local variables
    new BusType;//Removed BusID
    
    // Make sure the player isn't inside a vehicle
    if (! GetPlayerVehicleID(playerid) )
    {
        // Loop through all player-owned businesses
        for(new BID; BID < sizeof(ABusinessData); BID++)
        {
            if (IsPlayerInRangeOfPoint(playerid, 2.5, ABusinessData[BusID][BusinessX], ABusinessData[BusID][BusinessY], ABusinessData[BusID][BusinessZ]))
            {
                // Get the business-type
                BusType = ABusinessData[BusID][BusinessType];

                // Set the worldid so other players cannot see him anymore
                SetPlayerVirtualWorld(playerid, 2000 + BusID);
                // Set the player inside the interior of the business
                SetPlayerInterior(playerid, ABusinessInteriors[BusType][InteriorID]);
                // Set the position of the player at the spawn-location of the business's interior
                SetPlayerPos(playerid, ABusinessInteriors[BusType][IntX], ABusinessInteriors[BusType][IntY], ABusinessInteriors[BusType][IntZ]);

                // Also set a tracking-variable to enable /busmenu to track in which business the player is
                APlayerData[playerid][CurrentBusiness] = BusID;
                // Also let the player know he can use /busmenu to control his business
                SendClientMessage(playerid, 0xFFFFFFFF, "{00FF00}Use {FFFF00}/busmenu{00FF00} to change options for your business");
    
                // Exit the function
                return 1;
            }
        }
    }

    // If no business was in range, allow other scripts to use the same command (like the housing-script)
    return 0;
}
Enjoy!


Re: PPC_Business - Mauzen - 30.01.2013

Quote:
Originally Posted by navroopsingh
Посмотреть сообщение
Replace the enter commands with this, delete the enter command and put this and complie!

Enjoy!
Its nice that you try to help others with your ppc knowledge, however you should check the date. That guy is even banned for half a year, so he surely wont care, just like in the other thread.


Re: PPC_Business - navroopsingh - 04.02.2013

Whoops, sorry dude, didn't checked the date!