Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Faggios with hydraulics by Sellize
- #define FILTERSCRIPT
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #include <a_samp>
- public OnFilterScriptInit()
- {
- print("Faggios with hydraulics by Sellize");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SetPVarInt(playerid, "faggio", 0);
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if (PRESSED(KEY_CROUCH))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new faggio = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(faggio) == 462)
- {
- if(GetPVarInt(playerid, "faggio") == 0)
- {
- new Float:x, Float:y, Float:z;
- GetVehiclePos(faggio, x, y, z);
- SetVehiclePos(faggio, x, y, z + 1);
- PutPlayerInVehicle(playerid, faggio, 0);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SetPVarInt(playerid, "faggio", 1);
- SetTimer("faggiotimer", 1000, 0);
- }
- }
- }
- }
- return 1;
- }
- forward faggiotimer(playerid);
- public faggiotimer(playerid)
- {
- SetPVarInt(playerid, "faggio", 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment