Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- forward daxis(playerid);
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- new Float:xyz[3];
- new Float:facangle;
- if (strcmp("/driftaxis", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInVehicle(playerid, vehicleid) == 1)
- {
- SetTimer("daxis", 99999999, true);
- GetPlayerFacingAngle(playerid, facangle);
- GetPlayerPos(playerid, xyz[0], xyz[1], xyz[2]);
- SetPlayerCameraLookAt(playerid, xyz[0]+10, xyz[1]-45, xyz[2]+20);
- SetCameraBehindPlayer(playerid);
- SendClientMessage(playerid, 0xFF0000FF, "Вие си заключихте завъртането на колата, за да го отключите излезте от нея!");
- }
- return 1;
- }
- return 0;
- }
- public daxis(playerid)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(SetTimer("daxis", 99999999, true))
- {
- SetTimer("daxis", 1000, false);
- SendClientMessage(playerid, 0xFF0000FF, "Завъртането камерата на колата се рестартира!");
- }
- return 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment