Server Creativity
#1

Hey Guys,

I was just wondering, what code can be used in plugins?
Also, if I were to create a plugin, what can this plugin affect?

Could I create a plugin that has several functions for example:

If a server was moving to another server the admin does /forceconnect [IP Here]
The function could be like Connect2IP(playerid, ip)
It would disconnect all players and reconnect them to another server without them logging out.

Is this possible?

Also, is there ways to edit the Zoom on weapons or anything with the use of plugins?
Or allow people to download files through the server.

Theres also a small thing, which has been bothering me.
Is it possible to have a Web Browser Interface using plugins, and then be able to navigate through webpages, either be real or code from a folder?
Reply
#2

Plugins are server sided, and can not do anything client related (eg connect them to another server). Plugins are coded in c++ to extend pawn, offering it things that the sa-mp server does not (things like a MySQL database, XML file support, or even just more mathematic functions).

The only way you could do what you want to (I mean the Connect2IP function) would be to have a separate client that goes along with the plugin. This means users would have to download it, and agree to be connected to other servers.

the weapon zooming can be done in pawn, and wouldnt be possible in a plugin (without hooking the native pawn functions...which would be redundant) because once again, plugins only affect and deal with the server.

You're last question depends on what your asking. It is possible to retrieve things from a website and display it in a dialog or client message, but if your asking if you can build an actual web browser in game that shows images and has a UI ... then no.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)