30.07.2013, 06:30
(
Последний раз редактировалось wumpyc; 30.07.2013 в 06:34.
Причина: indentation
)
If I understood you correctly use this:
Don't forget to edit coordinates for both factions.. 
Let me know if you get any errors.
pawn Код:
CMD:exitcctv(playerid, params[])
{
new faction = PlayerInfo[playerid][pFaction];
if(faction != LSPD && faction != SASD) return SCM(playerid, COLOR_LIGHTRED, "Invalid faction.");
if(!OnCCTV{playerid}) return SCM(playerid, COLOR_LIGHTRED, "You aren't watching a CCTV Camera.");
OnCCTV{playerid} = false;
StopPlayerSpec(playerid);
SetInterior(playerid, 10);
SetTimerEx("UnFreezePlayer", 500, 0, "i", playerid);
if(faction == LSPD)
{
SetPlayerPos(playerid, 262.1426,109.1119,1004.6172); //Use LSPD coordinates here
}
else if(faction == SASD)
{
SetPlayerPos(playerid, 262.1426,109.1119,1004.6172); //Use SASD coordinates here
}
return 1;
}

Let me know if you get any errors.