Scripting Help
#1

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)
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
and
https://sampwiki.blast.hk/wiki/Keys
Reply
#3

Use this:
Код:
public OnPlayerKeyStatsChange(playerid,newkeys,oldkeys)
{
if(PRESSING( newkeys, KEY_YES ))
{
CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/enter");
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)