Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. // This adds a command to the processCommand script.
  2. // argument0 = the command name
  3. // argument1 = the command
  4.  
  5. my_plugin = 'else if string_array[0] == "'+argument0+'"{'+argument1+'}'
  6.  
  7. a = string_pos("****", global.commandString)-4
  8. global.commandString = string_copy(global.commandString, 0, a)+my_plugin+string_copy(global.commandString, a+string_length(my_plugin), string_length(global.commandString)-a)
  9.  
  10. object_event_clear(PluginBuffer, ev_user0, ev_user0)
  11.  
  12. object_event_add(PluginBuffer, ev_user0, ev_user0, global.commandString)
  13.  
  14. ds_list_add(global.commandList, argument0)
  15.  
  16. show_message(my_plugin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement