Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <a_players>
- #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #if defined FILTERSCRIPT
- #pragma tabsize 0
- new ogg,delf;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Br0nXz_ Dolphin FS Loaded.");
- print("--------------------------------------\n");
- ogg = CreateObject(1607, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); //dolphin
- delf = 446;
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/dolphin",cmdtext,true,10) == 0)
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- delf = CreateVehicle(446, x +2, y, z+2, a, -1, -1, 60);
- AttachObjectToVehicle(ogg, delf, 0.0, 0.0, 0.4, 0.0, 0.0, 0.0); //-180
- LinkVehicleToInterior(delf, 6);
- PutPlayerInVehicle(playerid, delf, 0);
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys == 2)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- {
- PlayAudioStreamForPlayer(playerid,"http://www.ilvelierodeidelfini.it/audio/Globicefalo.mp3");
- }
- }
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment