Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Client-RC & onFilesUploaded() (https://forums.graalonline.com/forums/showthread.php?t=87097)

LoneAngelIbesu 07-27-2009 02:55 AM

Client-RC & onFilesUploaded()
 
Is there a way to detect when onFilesUploaded() is triggered from Client-RC? The automated upload script for Valikorlia displays a message on RC when a player tries to upload another person's personal graphic. But, the message displays for staff that upload files from Client-RC, too.

Pelikano 07-28-2009 06:58 PM

Hm.. you could check if the player is in the serveroptions I guess

cbk1994 07-28-2009 10:54 PM

Not sure what you're talking about exactly, but you could just check if their in server options, like Sam said.

PHP Code:

if (! (player.account in serveroptions.staff.tokenize(","))) { // I think you can do (serveroptions.staff), but I'm not sure
  
echo("Shame on you," SPC player.account "!");




All times are GMT +2. The time now is 03:25 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.