Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-08-2002, 07:02 AM
Yakuna2001 Yakuna2001 is offline
Registered User
Yakuna2001's Avatar
Join Date: Jun 2001
Location: England U.K
Posts: 940
Yakuna2001 is on a distinguished road
Send a message via AIM to Yakuna2001
Re: for jailing players

Quote:
Originally posted by mikepg
put this in a system weapon that is added when a player enters onlinestartlocal.graal or your main starting level:

NPC Code:

// Server Side Section of -system
if (actionserverside) {
if (strequals(#p(0),jailplayer)) {
with (getplayer(#p(1))) setlevel2 30,30,jail.graal;
}
}



NPC Code:

//#CLIENTSIDE
for (this.i=0; this.i<=sarraylen(serverr.jailedplayers); this.i++ {
if (strequals(#a,#I(serverr.jailedplayers,this.i)) {
triggeraction 0,0,serverside,-system,jailplayer,#a;
}
}



Then, when you want a player to be jailed,
edit the serverr.jailedplayers string via Server Flags (RC/NC), or use a NPC to do it.

Problem Solved.
sure problem sovled, unless you dont have npc server num nuts!
__________________

-Manager of the UnholyNation PlayerWorld-
UnholyNation Forums
Reply With Quote
Reply


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 01:21 PM.


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