Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #define HOLDING(%0) \
- ((newkeys & (%0)) == (%0))
- if(PRESSED(KEY_CROUNCH))
- {
- if(IsPlayerInRangeOfPoint(playerid, distancia, x, y, z) || IsPlayerInAnyCar(playerid))
- { // Ou a variavel do carro caso tenha setado
- //Comando pra abrir o portao aki
- //axo q criando uma variavel pra verifica se o portao foi fechado ou aberto dps vejo isso
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement