I need some help on making my wishes in my game, send YES/NO choices to only Admins. I would like the wish to be up on the choices also.
for example:
[src] has wished for [src.wish]. Will you grant it?
YES NO
ID:170343
![]() Feb 8 2005, 4:49 pm
|
|
![]() Feb 8 2005, 5:30 pm
|
|
Well, have the verb do it's thing, then do a loop check in the world to see if there's any admins currently on. Then send the alert to them. Make sure you break the loop.
|
Thief jack wrote:
Well, have the verb do it's thing, then do a loop check in the world to see if there's any admins currently on. Then semd the alert to them. Make sure you break the loop. Why would you want to break the loop? I think you would morely want to use continue. Also, it's A LOT better to keep a list of admins, and search the players list for admins. :) |
Break it, if it continues and another admin grants it, it could be granted twice. You got me on the list, tho.
|
Thief jack wrote:
Break it, if it continues and another admin grants it, it could be granted twice. You got me on the list, tho.Oh, I thought you meant like: for(var/mob/M in world) _>Meh, oh well. You got me there! We're even. *shakes hands* |
But if the admin doesn't grant it? the loop should continue until its granted or until it has went through every admin.
|