08.07.2010, 05:20
Hello Everyone i need that when the cop pd , horn close to the gate the gate will open and when he horn again the
gate closed , i've this OnPlayerKeyStateChange but without horn can you help me ??
gate closed , i've this OnPlayerKeyStateChange but without horn can you help me ??
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(!gPlayerUsingLoopingAnim[playerid]) return; if(IsKeyJustDown(KEY_SPRINT,newkeys,oldkeys)) { StopLoopingAnim(playerid); TextDrawHideForPlayer(playerid,txtAnimHelper); animation[playerid] = 0; } }