04.06.2010, 19:17
I have seen on servers were you can press a button, like a fire-*ALARM button, and then a gate opens. I know how to move object and stuff, but how do I make it so when I press the button it does something?
Originally Posted by [SARP
Michael Williams ]
Oh, ok. Makes sense. Seems like a lot of work. I have another question, how do I get animations onto my server, and add them into the script so when they do something, it will do an animation. and also, how do I make it so when they press a certain button something happens? |
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
if(newkeys == KEY_JUMP)
{
SendClientMessage(playerid,COLOR,"You have pressed JUMP BUTTON");
}