07.03.2012, 10:05
(
Last edited by Unknownich; 11/05/2012 at 05:32 PM.
)
ADMIN PLACE
This map is located near Jizzy club in San Fierro and only rcon admins are allowed to enter this place(you can change that).
Im not a mapper but I think I have some mapping skills ,post your opinion. enjoy
Video has been removed.
pawn Code:
#include <a_samp>
#include <streamer>
new penter;
new pexit;
new pshop;
#define DRINK 1200
//==============================================================================
// "[FS/MAP] Admin Place" by Unknownich aka Sonny
//==============================================================================
public OnFilterScriptInit()
{
print("Admin Place FS Loaded");
CreateDynamicObject(18553, -2659.12, 1341.64, 7.16, 0.00, 0.00, 359.39);
CreateDynamicObject(7314, -2661.63, 1341.46, 12.24, 0.00, 0.00, 270.29);
CreateDynamicObject(18654, -2658.48, 1343.82, 6.01, 0.00, 0.00, 156.53);
CreateDynamicObject(18654, -2658.60, 1339.33, 6.01, 0.00, 0.00, -156.00);
CreateDynamicObject(18647, -2659.14, 1337.40, 8.51, 0.00, 0.00, 0.00);
CreateDynamicObject(18647, -2659.14, 1337.40, 6.57, 0.00, 0.00, 0.00);
CreateDynamicObject(18647, -2659.14, 1337.40, 7.18, 0.00, 0.00, 0.00);
CreateDynamicObject(18647, -2659.14, 1337.40, 7.89, 0.00, 0.00, 0.00);
CreateDynamicObject(18648, -2659.17, 1345.60, 8.39, 0.00, 0.00, 0.00);
CreateDynamicObject(18648, -2659.17, 1345.60, 6.57, 0.00, 0.00, 0.00);
CreateDynamicObject(18648, -2659.17, 1345.60, 7.08, 0.00, 0.00, 0.00);
CreateDynamicObject(18648, -2659.17, 1345.60, 7.79, 0.00, 0.00, 0.00);
CreateDynamicObject(2773, -2656.34, 1343.92, 6.61, 0.00, 0.00, 271.66);
CreateDynamicObject(2773, -2656.24, 1339.42, 6.61, 0.00, 0.00, 271.55);
CreateDynamicObject(14594, -2676.31, 1332.39, -9.52, 0.00, 0.00, 0.00);
CreateDynamicObject(14446, -2649.63, 1344.18, -9.00, 0.00, 0.00, -90.00);
CreateDynamicObject(14455, -2649.43, 1347.34, -7.89, 0.00, 0.00, 180.00);
CreateDynamicObject(14455, -2655.07, 1347.40, -7.89, 0.00, 0.00, 180.00);
CreateDynamicObject(2297, -2662.14, 1342.71, -9.51, 0.00, 0.00, 44.16);
CreateDynamicObject(2846, -2652.28, 1340.16, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(14869, -2656.64, 1338.54, -8.85, 0.00, 0.00, 270.00);
CreateDynamicObject(11665, -2649.55, 1339.77, -8.79, 0.00, 0.00, 0.00);
CreateDynamicObject(1703, -2658.12, 1316.97, -9.61, 0.00, 0.00, 90.00);
CreateDynamicObject(1703, -2656.82, 1320.63, -9.61, 0.00, 0.00, 0.00);
CreateDynamicObject(1703, -2652.82, 1319.10, -9.61, 0.00, 0.00, 270.00);
CreateDynamicObject(2224, -2654.74, 1313.75, -9.51, 0.00, 0.00, 138.28);
CreateDynamicObject(1829, -2653.03, 1312.62, -9.00, 0.00, 0.00, 180.00);
CreateDynamicObject(19174, -2648.45, 1319.08, -7.29, 0.00, 0.00, 270.00);
CreateDynamicObject(19174, -2653.58, 1338.11, -7.26, 0.00, 0.00, 180.00);
CreateDynamicObject(19172, -2650.93, 1311.97, -7.10, 0.00, 0.00, 180.00);
CreateDynamicObject(19175, -2658.82, 1311.96, -7.09, 0.00, 0.00, 180.00);
CreateDynamicObject(2634, -2698.00, 1344.05, -6.86, 0.00, 0.00, 90.00);
CreateDynamicObject(2634, -2698.00, 1344.05, -8.88, 0.00, 0.00, 90.00);
CreateDynamicObject(16151, -2664.13, 1312.63, -9.21, 0.00, 0.00, 0.00);
CreateDynamicObject(19129, -2692.16, 1308.97, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(19129, -2672.50, 1308.97, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(19159, -2692.93, 1313.00, -5.71, 0.00, 0.00, 0.00);
CreateDynamicObject(19159, -2688.97, 1309.99, -5.71, 0.00, 0.00, 0.00);
CreateDynamicObject(19159, -2681.89, 1312.88, -5.71, 0.00, 0.00, 0.00);
CreateDynamicObject(19159, -2685.21, 1312.93, -5.71, 0.00, 0.00, 0.00);
CreateDynamicObject(19159, -2689.35, 1312.93, -5.71, 0.00, 0.00, 0.00);
CreateDynamicObject(18653, -2696.17, 1318.58, -9.45, 0.00, 0.00, 144.78);
CreateDynamicObject(18653, -2694.83, 1307.27, -9.45, 0.00, 0.00, -149.00);
CreateDynamicObject(18655, -2681.66, 1307.42, -9.44, 0.00, 0.00, 282.14);
CreateDynamicObject(18654, -2674.18, 1318.28, -9.45, 0.00, 0.00, 84.00);
CreateDynamicObject(18654, -2671.82, 1307.35, -9.45, 0.00, 0.00, -76.00);
CreateDynamicObject(18648, -2665.21, 1318.83, -6.90, 0.00, 0.00, 90.00);
CreateDynamicObject(18648, -2691.40, 1318.89, -6.90, 0.00, 0.00, 90.00);
CreateDynamicObject(18648, -2687.23, 1318.90, -6.90, 0.00, 0.00, 90.00);
CreateDynamicObject(18648, -2683.10, 1318.90, -6.90, 0.00, 0.00, 90.00);
CreateDynamicObject(18648, -2678.49, 1318.87, -6.90, 0.00, 0.00, 90.00);
CreateDynamicObject(18648, -2674.28, 1318.84, -6.90, 0.00, 0.00, 90.00);
CreateDynamicObject(18648, -2669.76, 1318.91, -6.90, 0.00, 0.00, 90.00);
CreateDynamicObject(2634, -2701.58, 1327.23, -8.28, 0.00, 0.00, 0.00);
CreateDynamicObject(2627, -2661.12, 1356.16, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(2628, -2658.77, 1355.78, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(14782, -2655.01, 1354.10, -8.67, 0.00, 0.00, 270.16);
CreateDynamicObject(2630, -2657.12, 1356.17, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(1985, -2658.32, 1351.45, -5.96, 0.00, 0.00, 0.00);
CreateDynamicObject(2629, -2661.25, 1349.59, -9.51, 0.00, 0.00, 178.80);
CreateDynamicObject(2632, -2656.70, 1349.11, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(14867, -2657.70, 1325.15, -8.07, 0.00, 0.00, 180.00);
CreateDynamicObject(1817, -2656.12, 1317.89, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(2226, -2662.02, 1353.45, -9.41, 0.00, 0.00, 91.00);
CreateDynamicObject(2596, -2654.91, 1354.47, -6.37, 0.00, 0.00, -90.00);
CreateDynamicObject(2011, -2692.16, 1348.78, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(2011, -2668.52, 1333.32, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(2011, -2678.07, 1333.27, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(2232, -2688.86, 1307.45, -8.84, 0.00, 0.00, 175.00);
CreateDynamicObject(2232, -2690.97, 1318.50, -8.84, 0.00, 0.00, 0.00);
CreateDynamicObject(2232, -2676.95, 1307.27, -8.84, 0.00, 0.00, 175.00);
CreateDynamicObject(2232, -2677.03, 1318.38, -8.84, 0.00, 0.00, 0.00);
CreateDynamicObject(1823, -2676.54, 1312.85, -9.45, 0.00, 0.00, 0.00);
CreateDynamicObject(1823, -2672.47, 1315.35, -9.45, 0.00, 0.00, 0.00);
CreateDynamicObject(1823, -2672.66, 1310.10, -9.45, 0.00, 0.00, 0.00);
CreateDynamicObject(2125, -2670.88, 1310.44, -9.15, 0.00, 0.00, 0.00);
CreateDynamicObject(2125, -2671.81, 1314.58, -9.15, 0.00, 0.00, 0.00);
CreateDynamicObject(2125, -2673.24, 1315.85, -9.15, 0.00, 0.00, 0.00);
CreateDynamicObject(2125, -2671.90, 1316.97, -9.15, 0.00, 0.00, 0.00);
CreateDynamicObject(2125, -2674.38, 1313.30, -9.15, 0.00, 0.00, 0.00);
CreateDynamicObject(2125, -2673.34, 1310.60, -9.15, 0.00, 0.00, 0.00);
CreateDynamicObject(2125, -2677.25, 1313.31, -9.15, 0.00, 0.00, 0.00);
CreateDynamicObject(2125, -2675.01, 1312.16, -9.15, 0.00, 0.00, 0.00);
CreateDynamicObject(1544, -2676.35, 1313.04, -8.95, 0.00, 0.00, 0.00);
CreateDynamicObject(1544, -2672.32, 1310.71, -8.95, 0.00, 0.00, 0.00);
CreateDynamicObject(1544, -2676.43, 1313.54, -8.95, 0.00, 0.00, 0.00);
CreateDynamicObject(1544, -2676.07, 1313.33, -8.95, 0.00, 0.00, 0.00);
CreateDynamicObject(1544, -2672.19, 1315.74, -8.95, 0.00, 0.00, 0.00);
CreateDynamicObject(1544, -2671.78, 1315.74, -8.95, 0.00, 0.00, 0.00);
CreateDynamicObject(1544, -2672.06, 1310.36, -8.95, 0.00, 0.00, 0.00);
CreateDynamicObject(19159, -2676.45, 1312.89, -5.71, 0.00, 0.00, 0.00);
CreateDynamicObject(19159, -2672.62, 1309.86, -5.71, 0.00, 0.00, 0.00);
CreateDynamicObject(19159, -2676.92, 1309.90, -5.71, 0.00, 0.00, 0.00);
CreateDynamicObject(19159, -2680.85, 1309.85, -5.71, 0.00, 0.00, 0.00);
CreateDynamicObject(19159, -2684.89, 1309.96, -5.71, 0.00, 0.00, 0.00);
CreateDynamicObject(2581, -2659.95, 1338.28, -8.50, 0.00, 0.00, 180.00);
CreateDynamicObject(1999, -2662.56, 1333.74, -9.51, 0.00, 0.00, 90.00);
CreateDynamicObject(1999, -2662.56, 1335.73, -9.51, 0.00, 0.00, 90.00);
CreateDynamicObject(2009, -2657.22, 1334.50, -9.51, 0.00, 0.00, 180.00);
CreateDynamicObject(1806, -2658.06, 1334.74, -9.51, 0.00, 0.00, 171.00);
CreateDynamicObject(1806, -2661.31, 1336.49, -9.51, 0.00, 0.00, 120.00);
CreateDynamicObject(1806, -2661.44, 1334.84, -9.51, 0.00, 0.00, 91.00);
CreateDynamicObject(2011, -2657.33, 1336.76, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(2002, -2657.35, 1332.59, -9.51, 0.00, 0.00, -90.00);
CreateDynamicObject(1776, -2659.00, 1327.90, -8.40, 0.00, 0.00, -180.00);
CreateDynamicObject(2778, -2661.58, 1328.00, -9.51, 0.00, 0.00, 180.00);
CreateDynamicObject(1703, -2677.67, 1336.82, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(1703, -2686.87, 1336.80, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(19172, -2686.34, 1327.41, -7.41, 0.00, 0.00, 180.00);
CreateDynamicObject(19172, -2688.17, 1337.40, -7.41, 0.00, 0.00, 0.00);
CreateDynamicObject(19175, -2673.00, 1337.40, -7.37, 0.00, 0.00, 0.00);
CreateDynamicObject(19173, -2680.59, 1337.40, -7.35, 0.00, 0.00, 0.00);
CreateDynamicObject(1824, -2677.11, 1341.71, -8.90, 0.00, 0.00, 0.00);
CreateDynamicObject(1978, -2676.08, 1346.19, -8.49, 0.00, 0.00, 90.00);
CreateDynamicObject(2785, -2679.88, 1346.46, -8.70, 0.00, 0.00, 90.65);
CreateDynamicObject(2596, -2697.51, 1319.45, -6.54, 0.00, 0.00, 133.19);
CreateDynamicObject(2596, -2670.58, 1327.02, -6.43, 0.00, 0.00, 113.00);
CreateDynamicObject(1776, -2691.98, 1342.83, -8.53, 0.00, 0.00, 270.00);
CreateDynamicObject(2002, -2690.22, 1327.93, -9.51, 0.00, 0.00, 180.00);
CreateDynamicObject(2011, -2703.03, 1336.90, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(2011, -2691.68, 1337.07, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(2779, -2703.17, 1333.82, -9.51, 0.00, 0.00, 90.00);
CreateDynamicObject(2779, -2703.17, 1332.51, -9.51, 0.00, 0.00, 90.00);
CreateDynamicObject(2011, -2693.83, 1332.38, -9.51, 0.00, 0.00, 0.00);
CreateDynamicObject(2778, -2703.30, 1331.09, -9.51, 0.00, 0.00, 90.00);
CreateDynamicObject(19174, -2667.18, 1320.11, -7.26, 0.00, 0.00, 180.00);
CreateDynamicObject(1502, -2662.78, 1340.84, -9.50, 0.00, 0.00, 270.00);
CreateDynamicObject(2773, -2693.23, 1320.26, -9.01, 0.00, 0.00, 0.00);
CreateDynamicObject(2773, -2695.52, 1320.36, -9.01, 0.00, 0.00, 0.00);
CreateDynamicObject(19173, -2694.33, 1319.10, -6.20, 0.00, 0.00, 0.00);
CreateDynamicObject(2596, -2694.21, 1332.53, -6.54, 0.00, 0.00, 105.00);
CreateDynamicObject(2921, -2697.82, 1327.20, -6.30, 0.00, 0.00, -113.00);
CreateDynamicObject(2921, -2662.95, 1337.58, -6.30, 0.00, 0.00, 0.00);
CreateDynamicObject(1550, -2662.58, 1333.77, -8.39, 0.00, 0.00, 0.00);
CreateDynamicObject(2775, -2657.20, 1331.37, -6.38, 0.00, 0.00, 270.00);
CreateDynamicObject(1210, -2662.73, 1336.30, -8.60, 0.00, 0.00, 0.00);
CreateDynamicObject(3071, -2656.84, 1352.79, -9.41, 88.00, 84.00, 0.00);
CreateDynamicObject(3071, -2656.67, 1353.60, -9.41, 84.00, 84.00, 0.00);
CreateDynamicObject(19175, -2670.40, 1353.69, -7.14, 0.00, 0.00, 0.00);
penter = CreatePickup(1318, 1, -2658.5, 1341.6, 7.0);
pexit = CreatePickup(1318, 1, -2696.8, 1344.1, -8.5);
pshop = CreatePickup(1274, 2, -2665.8, 1312.0, -8.4);
}
public OnFilterScriptExit()
{
print("Admin Place FS Unloaded");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/aplace", true))
{
SetPlayerPos(playerid, -2653.4, 1341.6, 7.1);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
return 1;
}
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == penter)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xffffaaff, "***ADMINS ONLY!!!");
SetPlayerPos(playerid, -2701.6, 1328.1, -8.5);
SetPlayerFacingAngle(playerid, 0.0);
}
if(pickupid == pexit)
{
SetPlayerPos(playerid, -2653.4, 1341.6, 7.1);
SetPlayerFacingAngle(playerid, 270.0);
}
if(pickupid == pshop)
{
ShowPlayerDialog(playerid, DRINK, DIALOG_STYLE_LIST, "Menu", "{FF5000}Sprunk\n{3000FF}Beer\n{CC8080}Wine", "Select", "Cancel");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DRINK)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, 0xffffaaff, "Enjoy in your free sprunk");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
}
if(listitem == 1)
{
SendClientMessage(playerid, 0xffffaaff, "Dont get drunk!");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
}
if(listitem == 2)
{
SendClientMessage(playerid, 0xffffaaff, "Dont get drunk!");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
}
}
return 1;
}
return 0;
}