05.08.2010, 16:18
Public OnPlayerKeyStateChange
Код:
exemplo: if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { if(PlayerToPoint(0.5,playerid,245.2499,73.7988,1003.6406)) { SetPlayerPos(playerid, 245.4128,73.8780,1003.6406); ApplyAnimation(playerid, "NOME DA ANIMACAO",4.0,0,0,0,0,0); MoveObject( PDDOORa, 247.005905 , 72.448440 , 1006.912902,3); GameTextForPlayer(playerid, "~g~]~b~Portao Aberto~g~]", 4000, 3); SetTimer("GaragemDpClosed", 4000, false); } }