02.05.2014, 05:48
Guys, I am scripting & adding a command: /lspdcam
It works perfect but when I use /lspdcamoff It dosen't stops viewing but it gets to the computer where I want.
Can you tell me code for stopping it?
Check it:
It works perfect but when I use /lspdcamoff It dosen't stops viewing but it gets to the computer where I want.
Can you tell me code for stopping it?
Check it:
Код:
CMD:lspdcamoff(playerid, params[]) { if(PlayerInfo[playerid][pMember] == 1) { if (IsPlayerInRangeOfPoint(playerid,5.0,271.1183,107.9959,1004.6172) || IsPlayerInRangeOfPoint(playerid,5.0,1542.9828,-1654.8627,26.1621) || IsPlayerInRangeOfPoint(playerid,5.0,1542.9828,-1654.8627,26.1621 )) { TogglePlayerSpectating(playerid, 0); SetPlayerInterior(playerid,10); SetPlayerPos(playerid,1542.9828,-1654.8627,26.1621); } else { SendClientMessageEx(playerid, COLOR_WHITE, "You aren't using the LSPD Camera."); } } return 1; }