Need Help in Managing the Pickups Locations. - 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: Need Help in Managing the Pickups Locations. (
/showthread.php?tid=465203)
Need Help in Managing the Pickups Locations. -
MAFIAWARS - 21.09.2013
Hello Again!
I want your Help Friends in managing the Pickups. I created one Pickup, here is the Screen Shot of it.
And I did it's coating like that and It is successfully working.
PHP код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1726.8889,-1636.7916,20.2173))
SetPlayerPos(playerid, 1727.1019,-1638.6068,20.2233,3.4334);
SetPlayerInterior(playerid, 18);
return 1;
}
But I want to make another Pickup on LSPD and I also created it. But I don't know How to Manage it within /enter Command so I can also do /enter there. I want to make a /enter command here and I can But I don't know How to Script 2 Pickups of /enter in one "CMD:enter"
I already did like that but It is giving Errors that "undefined symbol "IsPlayerInRange"
PHP код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1726.8889,-1636.7916,20.2173))
SetPlayerPos(playerid, 1727.1019,-1638.6068,20.2233,3.4334);
SetPlayerInterior(playerid, 18);
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1236.8489,-1236.7443,10.2003))
SetPlayerPos(playerid, 1427.7419,-1268.6798,10.2249,3.4984); // It is an Example
SetPlayerInterior(playerid, 18);
}
return 1;
}
here I want to make /enter CMD.
Help Me Please.
Re: Need Help in Managing the Pickups Locations. -
DanishHaq - 21.09.2013
pawn Код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1726.8889,-1636.7916,20.2173))
{
SetPlayerPos(playerid, 1727.1019,-1638.6068,20.2233,3.4334);
SetPlayerInterior(playerid, 18);
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 5, 1236.8489,-1236.7443,10.2003))
{
SetPlayerPos(playerid, 1427.7419,-1268.6798,10.2249,3.4984); // It is an Example
SetPlayerInterior(playerid, 18);
return 1;
}
return 1;
}
Re: Need Help in Managing the Pickups Locations. -
MAFIAWARS - 21.09.2013
Love you :* :P