SA-MP Forums Archive
IsAtDealership help - 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: IsAtDealership help (/showthread.php?tid=238234)



IsAtDealership help - Tom1412 - 11.03.2011

i need help understanding how to add more dealerships and move them since my server is moving.

Can anyone help me out?

pawn Код:
public IsAtDealership(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855) || PlayerToPoint(50,playerid,537.3366,-1293.2140,17.2422) || PlayerToPoint(35,playerid,2521.5544,-1524.4504,23.8365) || PlayerToPoint(50,playerid,2155.0146,-1177.3333,23.8211) || PlayerToPoint(50,playerid,299.1723,-1518.6627,24.6007))
        {
            return 1;
        }
    }
    return 0;
}

public IsAtDealership2(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerToPoint(50.0,playerid,-2187.1299,-409.4674,35.3359) || PlayerToPoint(50,playerid,-2392.5679,-2181.5586,32.8610) || PlayerToPoint(50,playerid,-2054.7700,-93.2296,35.1641) || PlayerToPoint(50,playerid,-2187.1299,-409.4674,35.3359) || PlayerToPoint(50,playerid,-1547.7502,1249.6267,-0.6037))
        {
            return 1;
        }
    }
    return 0;
}



Re: IsAtDealership help - Hashski - 11.03.2011

Go in game use /save then get the coords and add this to the function

pawn Код:
|| PlayerToPoint(50, playerid, X, Y, Z)
Like its already done.