About the plugins - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: About the plugins (
/showthread.php?tid=643695)
About the plugins -
Kraeror - 25.10.2017
Hello guys. I realy need a plugin, which allows all keys for using, like when you press "K" it opens your inventory! Or press "G" doing something else... Is there any plugin like this?
Re: [QUESTION]About the plugins -
UberEverywhere - 25.10.2017
PHP код:
public OnPlayerUpdate(playerid)
{
if(IsKeyDown(VK_K))
{
// code to open inventory here
}
if(IsKeyDown(VK_G))
{
// code to do whatever you want here
}
}
This is used with the Plugin in the reply above ^
Re: [QUESTION]About the plugins -
Xeon™ - 25.10.2017
Not possible at the moment, those plugins are server side keys ^ not per player key
Re: [QUESTION]About the plugins -
Kraeror - 25.10.2017
Thank you all guys! I think this plugin should work, I will test it! +1 REP all!!!
Re: [QUESTION]About the plugins -
Xeon™ - 25.10.2017
Quote:
Originally Posted by Kraeror
Thank you all guys! I think this plugin should work, I will test it! +1 REP all!!!
|
just don't, if you used exemple above you will show the dialog to all players not only you, ITS SERVER SIDE key (detect a press key on the whole server not a specified player)
Re: [QUESTION]About the plugins -
Kraeror - 25.10.2017
Any help guys






? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This plugin is still not loading
Re: [QUESTION]About the plugins -
Danisoni - 25.10.2017
However this is server-sided plugin, it's not client-sided, so if you click that button, it will work for whole server.
Re: [QUESTION]About the plugins -
Kraeror - 26.10.2017
I know it, but why the plugin doesn't load?
Re: [QUESTION]About the plugins -
Kraeror - 26.10.2017
Any help
Re: About the plugins -
Lucases - 26.10.2017
They already told you this plugin is server sided. If a players clicks a key the whole server will be effected by the function you script under it.