How would I make this into multiple places.
#15

pawn Код:
new exitinterior[][]= // you may change this global var to other names you like but change the rest of the code that uses this globalvar
{
{x,y,z},
};
CMD:exit(playerid, params[])
{
    for(new i;i!=sizeof(entrance);i++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,exitinterior[i][0],exitinterior[i][1],exitinterior[i][2]))
        {
            SetPlayerPos(playerid, exitTele[i][0],exitTele[i][1],exitTele[i][2]);
            SetPlayerInterior(playerid, exitTele[i][3]);
            SetPlayerVirtualWorld(playerid, exitTele[i][4]);
            SetCameraBehindPlayer(playerid);
            break;
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)