so for example how would i say the ZoneManager external call
i've tried these and more combinations. whats the correct way of calling thisCode:bool AddPlayerToZoneWhitelist(string ZoneID, BasePlayer player) bool isPlayerInZone(string ZoneID, BasePlayer player)
cant seem to get it right someone show me the correct way to use this please. thanksCode:[PluginReference]Plugin ZoneManager; ZoneManager?.Call("AddPlayerToZoneWhitelist","42752026", player);and if ( isPlayerInZone("92342343", player){} and bool test = isPlayerInZone("92342343",player);
[DOUBLEPOST=1435731484][/DOUBLEPOST]bool test =Convert.ToBoolean(ZoneManager?.Call("isPlayerInZone","42752026", player));
that seems to work ^^ i think
Solved External plugin call with C#
Discussion in 'Rust Development' started by Fa'yen(ruchia), Jul 1, 2015.
-
If you're trying to call another plugin, use the code below.
Code:var ZoneManager = plugins.Find("ZoneManager")
Last edited by a moderator: Jul 1, 2015 -
Code:
var ZoneManager = plugins.Find("ZoneManager")
-
-
Code:
bool test =Convert.ToBoolean(ZoneManager?.Call("isPlayerInZone","42752026", player));
-
Hey !
I was wondering if there's a way to call a function from an external plugin which is in lua when my plugin is in C# ... ?
When i tryCode:var tpPlugin = plugins.Find("m-Teleportation"); tpPlugin.cmdTeleportHome(player, command, args);
Error : : Type `Oxide.Core.Plugins.Plugin' does not contain a definition for `cmdTeleportHome' and no extension method `cmdTeleportHome' of type `Oxide.Core.Plugins.Plugin' could be found. Are you missing an assembly reference? -
-
I feel dumb for havn't read everything now ... Ty Hatemail.