/*ok well my problem is i want it so you can only travel east if you are subscribed to the game heres the code i have to go east*/
turf/goeast
goeast
Enter()
if(usr.full_access == 1)
..()
usr.loc=locate(1,usr.y,13)
turf/gobackeast
Enter()
usr.loc=locate(199,usr.y,1)
/*its either that part thats wrong or this part*/
mob/var
full_access
mob/Login()
if(client.CheckPassport("14c8f8d749b6811d"))
full_access = 1
/*please if you can help reply to this*/
ID:261724
Feb 14 2003, 2:24 pm
|
|
In accordance to what Lummox was saying...NEVER use usr in any proc() it's just...just, WRONG. It may seem to work perfectly in Single Player, but...wait until all these purdy errors start popping up when you test multiplayer, you'll be stumped! Instead in a mob/proc use src instead of usr. But, in Enter()/Entered()/Exited() procs do this...
Enter(atom/movable/A) |
In response to Garthor
|
|
Garthor wrote:
Usually giving out your game's passport ID isn't a good thing.... I don't think there is really any harm in it.. As I don't see where anybody could use it to their advantage, except checking to see if they are suscribed to his game.. ~>Volte |
Hellgate_uk wrote:
turf/goeast Aside from the usr problem, this enter proc relocates the the mob no matter if they have full_access or not. Enter(O) if(ismob(O)) var/mob/M = O if(M.full_access == 1) M.loc=locate(1,usr.y,13) return 0 return ..() |
full_access = 1
isnt effecting the client
it should be src.full_access = 1