Thread: Scripting query
View Single Post
  #5  
Old 01-31-2002, 09:30 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
try this
NPC Code:

if (playerchats) {
tokenize #c;
if (tokenscount==2&&strequals(#t(0),/jail)) {
addstring server.jailed,#t(1);
setplayeprop #c, ; }
if (tokenscount==2&&strequals(#t(0),/unjail)) {
if (lindexof(#t(1),server.jailed)>=0) {
deletestring server.jailed,lindexof(#t(1),server.jailed);
} else { say2 #t(1) isn't in jail; }
setplayerprop #c, ;
}
}



thats a pretty simple script, you will have to write a script that will jail the player (should be server side)
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote