View Single Post
  #2  
Old 08-26-2011, 05:08 PM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Good job finishing your script. I have a few suggestions, if you feel like improving it.

Before modifying the serverr flag, verify that the player is who it should be. An abusive player could manipulate their client into sending a trigger to this weapon and modify any serverr flag they wish.

PHP Code:
function onActionServerside() {
  if (!(
player.communityname in serveroptions.staff.tokenize(",")))
    return;
  if (
params[0] == "addflags"serverr.(@params[1]) = params[2];

Also, please use
PHP Code:
function ChatBar.onAction() { 
  if (
ChatBar.text.trim() == "/flagadder") { 
    
OpenGui(); //Opens the GUI. 
  


rather than onPlayerChats for chat commands.
Reply With Quote