PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: night_hawk on 19 March, 2004, 19:00:08

Title: Looking for pm-to-ops program
Post by: night_hawk on 19 March, 2004, 19:00:08
hi i am looking for a pm-to-ops program can someone help me out please...
Title:
Post by: plop on 19 March, 2004, 20:18:13
QuoteOriginally posted by night_hawk
hi i am looking for a pm-to-ops program can someone help me out please...
something like this??
function DataArrival(user, data)
   if user.iProfile <=1 then
      data=strsub(data,1,strlen(data)-1)
      local s,e,cmd = strfind(data,"%b<>%s+(%S+)")
      if cmd == "!pmops" then
         s,e,msg = strfind(data,"%b<>%s+%S+%s+(.+)")
         SendPmToOps(user.sName, msg.."|")
      end
   end
end
plop