13.09.2010, 20:19
Hey guys if sombody can help me i will be happy so this is the problem i want to do like this,to open my gate in the button like JUMP button so i hope you guys wiil help me thanks..
I was try this commant it's not working
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if( newkeys & KEY_JUMP && GetPlayerState( playerid ) == PLAYER_STATE_ONFOOT && IsPlayerInRangeOfPoint( playerid, 10.0, x, y, z )) //x y z = coords for the gate { // do stuff } return true;}
It's Shutting down all my pawn so pleas help me guys i need it.
I was try this commant it's not working
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if( newkeys & KEY_JUMP && GetPlayerState( playerid ) == PLAYER_STATE_ONFOOT && IsPlayerInRangeOfPoint( playerid, 10.0, x, y, z )) //x y z = coords for the gate { // do stuff } return true;}
It's Shutting down all my pawn so pleas help me guys i need it.