Script help please
#2

If I understood you correctly use this:
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;
}
Don't forget to edit coordinates for both factions..

Let me know if you get any errors.
Reply


Messages In This Thread
/exitcctv - by Pk93 - 30.07.2013, 01:07
Re: Script help please - by wumpyc - 30.07.2013, 06:30
Re: Script help please - by Pk93 - 31.07.2013, 02:29
Re: Script help please - by wumpyc - 31.07.2013, 02:57

Forum Jump:


Users browsing this thread: 1 Guest(s)