Need Help in Managing the Pickups Locations.
#1

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(playeridparams[])
{
    if(
IsPlayerInRangeOfPoint(playerid51726.8889,-1636.7916,20.2173))
    
SetPlayerPos(playerid1727.1019,-1638.6068,20.2233,3.4334);
    
SetPlayerInterior(playerid18);
    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(playeridparams[])
{
        if(
IsPlayerInRangeOfPoint(playerid51726.8889,-1636.7916,20.2173))
    
SetPlayerPos(playerid1727.1019,-1638.6068,20.2233,3.4334);
    
SetPlayerInterior(playerid18);
        {
        if(
IsPlayerInRangeOfPoint(playerid51236.8489,-1236.7443,10.2003))
    
SetPlayerPos(playerid1427.7419,-1268.6798,10.2249,3.4984); // It is an Example
    
SetPlayerInterior(playerid18);
        }
        return 
1;

here I want to make /enter CMD.



Help Me Please.
Reply
#2

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;
}
Reply
#3

Love you :* :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)