Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-12-2012, 03:30 PM
Ducati_Link Ducati_Link is offline
Banned
Ducati_Link's Avatar
Join Date: Oct 2001
Location: Perth, Australia
Posts: 415
Ducati_Link is on a distinguished road
Send a message via MSN to Ducati_Link
Gmap account restriction?

Is there a way to account restrict a gmap area? And not talking like 'staff only'.. Have multiple gmaps, and certain people can only access certain ones?
Reply With Quote
  #2  
Old 10-12-2012, 03:50 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
You can setup a class script like this:

level_denyunawesomepeople

PHP Code:
function onPlayerEnters() {
  if (
cantAccess()) {
    
warpAway();
  }
}

function 
cantAccess() {
  if (
player.isawesome) {
    return 
false;
  } else {
    return 
true;
  }
}

function 
warpAway() {
  
player.setlevel2("onlinestartlocal.nw"3030);

then in your levels

PHP Code:
function onCreated() {
  
join("level_denyunawesomepeople");

__________________
Quote:
Reply With Quote
  #3  
Old 10-12-2012, 03:52 PM
Ducati_Link Ducati_Link is offline
Banned
Ducati_Link's Avatar
Join Date: Oct 2001
Location: Perth, Australia
Posts: 415
Ducati_Link is on a distinguished road
Send a message via MSN to Ducati_Link
Excellent - Thank you very much Fowl
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.