Thread: Timming
View Single Post
  #8  
Old 11-16-2001, 09:11 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
here:
NPC Code:

NPC Code:

// In Staff NPC
if (playerchats && startswith(jail,#c)){
tokenize #c;
setstring server.jail,#t(1);
setstring server.jailtime,timevar+(strtofloat(#t(3)));
setplayerprop #c,(#t(1) jailed for #t(3) sec.);
}

// In Player NPC
if (strcontains(#a,#s(server.jail)) && !strcontains(#L,jaillevel.graal)) {
setlevel2 jaillevel.graal,32,32;
setstring server.jail,;
setstring client.jailtime,#s(serverjailtime);
setstring server.jailtime,;
}
if (timevar>=strtofloat(#s(client.jailtime))){
setplayerprop #c,~Your time in jail has been served. You're free to go.~;
setlevel onlinestartlocal.graal;
destroy;
}




that seems like it would work ....
Reply With Quote