http://pastebin.com/E8seJG5x (server)
http://pastebin.com/w2kChL1U (client)
I have these two scripts, and I adapted it to what we were doing with OpenPeripherals and PlayerDetectors.
Now my question here is, how do I set it so on the server, it reads the list, and the client sends a player name, and if that player names matches one in the list, then do stuff.?
Thanks!
Miguel R.
How do you get this working correctly as a list.
Started by miguemely, Sep 29 2013 08:46 PM
3 replies to this topic
#1
Posted 29 September 2013 - 08:46 PM
#2
Posted 29 September 2013 - 09:33 PM
Split into new topic.
#3
Posted 30 September 2013 - 08:29 AM
server code
names = {you,friend,another friend} --# put appropriate names
while true do
id,msg,dis = rednet.receive()
for key,name in pairs(names) do
if msg == name then
--# send info for client to do stuff
end
end
end
#4
Posted 30 September 2013 - 03:34 PM
Thanks jay!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











