Scripting Help - 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: Scripting Help (
/showthread.php?tid=587155)
Scripting Help -
kleantzhubi - 28.08.2015
Hello,Im new on scripting and i dont know how to do that...
Example when i click "H" automatically says /enter and automatically press enter by server
(Example in roleplay server i click H and i enter in DOOR)
Re: Scripting Help -
jlalt - 28.08.2015
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
and
https://sampwiki.blast.hk/wiki/Keys
Re: Scripting Help -
Roberto80 - 28.08.2015
Use this:
Код:
public OnPlayerKeyStatsChange(playerid,newkeys,oldkeys)
{
if(PRESSING( newkeys, KEY_YES ))
{
CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/enter");
}
return 1;
}