Advertisement
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 camera(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
- new float:xyza[3];
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (!strcmp(cmdtext, "/test"))
- {
- SetCameraBehindPlayer(playerid);
- SetTimer("camera", 1, true);
- return 1;
- }
- if (!strcmp(cmdtext, "/givemespeed"))
- {
- SetPlayerVelocity(playerid, xyza[0]+50, xyza[1]+50, xyza[2]+50);
- return 0;
- }
- return 1;
- }
- public camera(playerid)
- {
- new Float:xyz[3];
- new cambeh = SetCameraBehindPlayer(playerid);
- GetPlayerCameraPos(playerid, xyz[0], xyz[1], xyz[2]);
- SetPlayerCameraLookAt(cambeh, xyz[0], xyz[1], xyz[2]+25);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement