Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #define dcmd(%1,%2,%3) if((strcmp((%3)[1],#%1,true,(%2))==0)&&((((%3)[(%2)+1]==0)&&(dcmd_%1(playerid,"")))||(((%3)[(%2)+1]==32)&&(dcmd_%1(playerid,(%3)[(%2)+2]))))) return 1
- #define COL_WHITE 0xFFFFFFAA
- #define COL_RED 0xE10000AA
- new bool:CamSpect[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Las Venturas Cam System by NtCat v0.1b ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- dcmd(lvcam, 5, cmdtext);
- dcmd(lvcamoff, 8, cmdtext);
- dcmd(lvcaminfo, 9, cmdtext);
- return 0;
- }
- dcmd_lvcam(playerid,params[])
- {
- if(IsPlayerConnected(playerid))
- {
- new LVCamera = strval(params);
- if(!strlen(params)) {SendClientMessage(playerid,COL_WHITE,"USAGE: /cam 1-8");}
- else if(LVCamera < 1 || LVCamera > 8) {SendClientMessage(playerid,COL_WHITE,"USAGE: /cam 1-8");}
- else
- {
- if(LVCamera == 1)
- {
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,false);
- SetPlayerCameraPos(playerid,2189.5806,2408.7246,75.0426);
- SetPlayerCameraLookAt(playerid,2287.6287,2425.6077,10.8203);
- SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 1, write /camoff for turn it off.");
- }
- else if(LVCamera == 2)
- {
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,false);
- SetPlayerCameraPos(playerid,2175.2954,1920.2675,68.2250);
- SetPlayerCameraLookAt(playerid,2058.4116,1927.2947,25.6404);
- SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 2, write /camoff for turn it off.");
- }
- else if(LVCamera == 3)
- {
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,false);
- SetPlayerCameraPos(playerid,2084.4563,1685.5187,21.4174);
- SetPlayerCameraLookAt(playerid,2167.0383,1679.8147,13.7421);
- SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 3, write /camoff for turn it off.");
- }
- else if(LVCamera == 4)
- {
- SetPlayerInterior(playerid,1);
- TogglePlayerControllable(playerid,false);
- SetPlayerCameraPos(playerid,2236.0862,1639.5861,1008.3594);
- SetPlayerCameraLookAt(playerid,2235.7483,1581.2803,1007.6695);
- SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 4, write /camoff for turn it off.");
- }
- else if(LVCamera == 5)
- {
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,false);
- SetPlayerCameraPos(playerid,2093.4890,1286.2834,77.4710);
- SetPlayerCameraLookAt(playerid,2169.6665,1286.4927,34.9704);
- SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 5, write /camoff for turn it off.");
- }
- else if(LVCamera == 6)
- {
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,false);
- SetPlayerCameraPos(playerid,2087.2651,1007.2668,47.5117);
- SetPlayerCameraLookAt(playerid,2026.9717,1007.3011,10.8203);
- SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 6, write /camoff for turn it off.");
- }
- else if(LVCamera == 7)
- {
- SetPlayerInterior(playerid,10);
- SetPlayerPos(playerid,2016.6415,1017.6605,994.8750);
- TogglePlayerControllable(playerid,false);
- SetPlayerCameraPos(playerid,2016.6415,1017.6605,996.8750);
- SetPlayerCameraLookAt(playerid,1976.6785,1018.0529,994.4688);
- SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 7, write /camoff for turn it off.");
- }
- else
- {
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,false);
- SetPlayerCameraPos(playerid,1746.9436,1453.2660,32.6941);
- SetPlayerCameraLookAt(playerid,1680.8373,1448.2501,10.7733);
- SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 8, write /camoff for turn it off.");
- }
- CamSpect[playerid]=true;
- }
- }
- return 1;
- }
- dcmd_lvcamoff(playerid,params[])
- {
- #pragma unused params
- if(IsPlayerConnected(playerid))
- {
- if(CamSpect[playerid] == false){SendClientMessage(playerid,COL_WHITE,"You haven�t any camera turned on.");}
- else
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,1689.0211,1450.3179,10.7673);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid,true);
- SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You have turned camera off.");
- CamSpect[playerid]=false;
- }
- }
- return 1;
- }
- dcmd_lvcaminfo(playerid,params[])
- {
- #pragma unused params
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid,COL_RED,"Las Venturas Cam System by NtCat v0.1");
- SendClientMessage(playerid,COL_WHITE,"Commands: /cam 1-8, /camoff.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement