31.08.2013, 21:54
pawn Код:
CMD:enter(playerid)
{
if(PlayerToPoint(2.0,playerid,1798.0624,-1578.3523,14.0876))
{
SetPlayerPos(playerid,1810.5715,-1515.2870,5700.4287);
SetPlayerInterior(playerid, 20);
SendClientMessage(playerid, 0x9ACD32AA, "[Prison]: {FFFFFF} Welcome to Los Santos Prison");
}
return 1;
}
CMD:exit(playerid)
{
if(PlayerToPoint(2.0,playerid,1810.5715,-1515.2870,5700.4287))
{
SetPlayerPos(playerid,1798.7612,-1578.7915,14.0878);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:prison(playerid)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1820.19995117,-1533.80004883,5701.899);
return 1;
}
CMD:dooropen(playerid)
{
if(PlayerToPoint(2.0,playerid,1812.0830,-1545.2319,5700.4287))
{
MoveObject(pdoor3,1811.73828125+1,-1545.82873535,5699.42480469,0.50);
MoveObject(pdoor4,1808.73071289-1,-1545.87463379,5699.42480469,0.50);
return 1;
}
else if(PlayerToPoint(2.0,playerid,1797.00830078,-1525.15258789,5699.42480469) || PlayerToPoint(2.0,playerid,1793.6631,-1523.9191,5700.4287))
{
MoveObject(edoor5,1797.00830078+1,-1525.15258789,5699.42480469,0.50);
MoveObject(edoor6,1794.00976562-1,-1525.18676758,5699.42480469,0.50);
return 1;
}
else SendClientMessage(playerid, 0xAA3333AA, "[Error]: {FFFFFF} You are not around a control pad!");
return 1;
}
CMD:pdooropen(playerid)
{
if(PlayerToPoint(2.0,playerid,1812.0830,-1545.2319,5700.4287) || PlayerToPoint(2.0,playerid,1810.3752,-1548.3003,5700.4287))
{
MoveObject(pdoor1,1808.76147461-1,-1547.63208008,5699.42480469,0.50);
MoveObject(pdoor2,1811.76184082+1,-1547.60510254,5699.42480469,0.50);
return 1;
}
else SendClientMessage(playerid, 0xAA3333AA, "[Error]: {FFFFFF} You are not around a control pad!");
return 1;
}
CMD:doorclose(playerid)
{
if(PlayerToPoint(2.0,playerid,1812.0830,-1545.2319,5700.4287))
{
MoveObject(pdoor3,1811.73828125,-1545.82873535,5699.42480469,0.50);
MoveObject(pdoor4,1808.73071289,-1545.87463379,5699.42480469,0.50);
return 1;
}
else if(PlayerToPoint(2.0,playerid,1797.00830078,-1525.15258789,5699.42480469) || PlayerToPoint(2.0,playerid,1793.6631,-1523.9191,5700.4287))
{
MoveObject(edoor5,1797.00830078,-1525.15258789,5699.42480469,0.50);
MoveObject(edoor6,1794.00976562,-1525.18676758,5699.42480469,0.50);
return 1;
}
else SendClientMessage(playerid, 0xAA3333AA, "[Error]: {FFFFFF} You are not around a control pad!");
return 1;
}
CMD:pdoorclose(playerid)
{
if(PlayerToPoint(2.0,playerid,1812.0830,-1545.2319,5700.4287) || PlayerToPoint(2.0,playerid,1810.3752,-1548.3003,5700.4287))
{
MoveObject(pdoor1,1808.76147461,-1547.63208008,5699.42480469,0.50);
MoveObject(pdoor2,1811.76184082,-1547.60510254,5699.42480469,0.50);
return 1;
}
else SendClientMessage(playerid, 0xAA3333AA, "[Error]: {FFFFFF} You are not around a control pad!");
return 1;
}