help with merging /enter
#1

So I wanted like to use /enter command for like 5-6 places I dont know how to make it can any one do it for me
CMD I made
pawn Код:
CMD:enter(playerid, params[])
    {
    if(IsPlayerInRangeOfPoint(playerid, 2.0, -2649.5574,381.3660,6.1593))
    SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
    SetPlayerInterior(playerid,6);
}
return 1;
}
The thing I want to add
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, -2672.0261,259.0808,4.6328))
    SetPlayerPos(playerid,369.579528,-4.487294,1001.858886);
    SetPlayerInterior(playerid,9);
Reply
#2

pawn Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, -2649.5574,381.3660,6.1593))
    {
        SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
        SetPlayerInterior(playerid,6);
    }
   
    elseif(IsPlayerInRangeOfPoint(playerid, 7.0, -2672.0261,259.0808,4.6328))
    {
        SetPlayerPos(playerid,369.579528,-4.487294,1001.858886);
        SetPlayerInterior(playerid,9);
    }
    return 1;
}
Not Tested
Reply
#3

Dude there is one problem I am randomly placed in any intrior if not near some place range I mean
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)