[FilterScript] +[Map] basicLSPD
#1

v1.0
This filterscript is one that I just made today, it is a basic LSPD with two moving gates and two moving doors. It is very basic, you use /gate to open the doors and gates. There are two pickups that you can use to teleport into the SFPD interior. No known bugs, let me know what you think and report bugs and suggestions please.

*Requires ZCMD

ATTENTION:
You will have to add this into your gamemode to use the pickups as teleports.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        //Send to LSPD garage
        if IsPlayerInRangeOfPoint(playerid, 1.0, 215.5831,126.7108,1003.2188) *then//LSPD garage door
        {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 1568.7168,-1689.9774,6.2188);//SFPD interior door from garage
        SetPlayerFacingAngle(playerid, 183.6507);
        }
        //Send into SFPD interior from garage
        if IsPlayerInRangeOfPoint(playerid, 1.0, 1568.7168,-1689.9774,6.2188) *then//LSPD garage door
        {
        SetPlayerInterior(playerid, 10);
        SetPlayerPos(playerid, 215.5831,126.7108,1003.2188);//SFPD interior door from garage
        SetPlayerFacingAngle(playerid, 184.9716);
        }
        //Send to SFPD interior
        if IsPlayerInRangeOfPoint(playerid, 1.0, 1555.3264, -1675.6326, 16.1953) *then//LSPD front door
        {
        SetPlayerInterior(playerid, 10);
        SetPlayerPos(playerid, 246.4379, 107.6772, 1003.2188);//SFPD interior door
        SetPlayerFacingAngle(playerid, 2.4717);
        }
        //Send to LSPD front door
        if IsPlayerInRangeOfPoint(playerid, 1.0, 246.4379, 107.6772, 1003.2188) *then//SFPD interior door
        {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 1555.3264, -1675.6326, 16.1953);//LSPD front door
        SetPlayerFacingAngle(playerid, 92.6884);
        }
    }
    return 1;
}
http://i49.tinypic.com/21ndtmo.png
http://i47.tinypic.com/t9urt5.png
http://i47.tinypic.com/k4tkt4.png
http://i49.tinypic.com/280ruya.png
http://i49.tinypic.com/2mevlms.png


http://pastebin.com/vGFw2h7f
Reply


Messages In This Thread
+[Map] basicLSPD - by TheCancler - 25.01.2013, 02:13
Respuesta: +[Map] basicLSPD - by The_M - 25.01.2013, 02:25
Re: Respuesta: +[Map] basicLSPD - by TheCancler - 25.01.2013, 02:26
Re: +[Map] basicLSPD - by TheCancler - 25.01.2013, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)