use player buttons - 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: use player buttons (
/showthread.php?tid=535539)
use player buttons -
Hirsw0w - 04.09.2014
hey, first sorry for my bad english.
ok, I want to know if this is possible to use players keys like controlling them,
I want they move forward or shooting on my command...
and If this can't be on players that possible in npc?
Re: use player buttons -
Rifa4life - 04.09.2014
Give an example?
Re: use player buttons -
Hirsw0w - 04.09.2014
Quote:
Originally Posted by Rifa4life
Give an example?
|
what you mean of example?
I want to control the player
UseButton(playerid,FIRE_KEY);
have something like that?
Re: use player buttons -
LeroyII - 04.09.2014
You want to control other player who is playing?
Re: use player buttons -
Riddick94 - 04.09.2014
Logically, that user is asking if there are any functions related to the players, to force them to do something from the script (server) side. Like shoot, walk, run, enter car etc.
Answer: Impossible to achieve with current functions, and probably won't be achievable in a future without special client-side modifications installed.
Re: use player buttons -
Rifa4life - 04.09.2014
In that case, then yeh, what Riddick said. But you can do something like that with NPCs, perhaps not with native functions but if you use Mauzen's RNPC plugin and make use of functions such as:
pawn Код:
RNPC_AddMovement(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2, Float:speed, use_zmap);
RNPC_ConcatMovement(Float:x, Float:y, Float:z, Float:speed, use_zmap);
RNPC_AddPause(Ftime)
RNPC_SetKeys(keys)