How to
#1

Let's say i decided to make an entrance and exit system, via mysql, and if the player is in range of an entrance thats on the db, they can enter. I wanted to use the crouch for entrances, which i think i could handle. My only problem is how to make the if in range of based of a database? I want to use it to save a custom name for place, enter x,y,z, interior, vw, exit x,y,z, and if locked or not. I can handle making the database and saving/loading it, i just dont know how to make it read from db on if in range of or w/e the function is.

Thanks in advance
Reply
#2

IsPlayerInRangeOfPoint
Reply
#3

I know that, but i want it get the coords from a database.


Edit: i think i have an idea.
Reply
#4

hmm cords from the database Download a interior FS Script
Reply
#5

Quote:
Originally Posted by Abreezy
View Post
I know that, but i want it get the coords from a database.


Edit: i think i have an idea.
You dont want to do this, you need the cooridinates in variables. You can load the variables from the data base during game init.
Reply
#6

I made the enums easily, as its the fastest part

pawn Code:
enum entrances
{
    ename,
    Float:enterx,
    Float:entery,
    Float:enterz,
    interiorid,
    Float:exitx,
    Float:exity,
    Float:exitz
}
new entrance[MAX_PLAYERS][entrances];
Now , i just need a way to make "Create3Dtext" using the enterx, y, z and when you get close to them via IsPlayerInRangeOfPoint and you crouch, you enter the "interiorid". Can someone tell me how to do that
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)