Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=====================================================//
- //************This filterscript was made by************//
- //*********************Tomix&Voxel*********************//
- //**************Do not remove the credits**************//
- //=====================================================//
- //* * * * INCLUDES * * * *//
- #include <a_samp>
- #include <zcmd>
- //* * * *DEFINES* * * *//
- #define COL_GR "{37DB45}"
- //* * * *VARIABLES* * * *//
- new FPS[MAX_PLAYERS];
- //* * * *EMUMS* * * *//
- enum pInformation
- {
- FirstPS,
- };
- new pInfo[MAX_PLAYERS][pInformation];
- //* * * *COMMAND* * * *//
- CMD:fps(playerid)
- {
- if(pInfo[playerid][FirstPS] == 0)
- {
- FPS[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(FPS[playerid],playerid, 0.0, 0.12, 0.7, 0.0, 0.0, 0.0);
- AttachCameraToObject(playerid, FPS[playerid]);
- SendClientMessage(playerid,-1,""COL_GR"You are not in first person mode type /fps to disable first person mode!");
- pInfo[playerid][FirstPS] = 1;
- }
- else if(pInfo[playerid][FirstPS] == 1)
- {
- SetCameraBehindPlayer(playerid);
- DestroyObject(FPS[playerid]);
- SendClientMessage(playerid,-1,""COL_GR"You have disabled first person mode!");
- pInfo[playerid][FirstPS] = 0;
- }
- return 1;
- }
- stock ResetVars(playerid)
- {
- pInfo[playerid][FPS] = 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement