07.05.2011, 21:47
......
#include <a_samp>
public OnFilterScriptInit()
{
AddStaticVehicle(522,2796.0242,-1571.8405,10.4870,271.8347,1,1);
AddStaticVehicle(522,2796.1746,-1575.8713,10.4694,270.9300,1,1);
AddStaticVehicle(461,2796.1514,-1584.9053,10.5263,272.2281,1,1);
AddStaticVehicle(461,2796.1655,-1588.9225,10.5099,268.0545,1,1);
AddStaticVehicle(562,2795.9612,-1580.4926,10.5866,269.7886,0,0);
AddStaticPickup(1318,1,2795.5496,-1619.3833,10.9219,0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/enter",true) == 0)
{
if (IsPlayerInRangeOfPoint(playerid,3,2795.5496,-1619.3833,10.9219))
{
SetPlayerPos(playerid,774.213989,-48.924297,1000.585937);
SetPlayerInterior(playerid,6);
}
return 1;
}
if(strcmp(cmdtext,"/exit",true) == 0)
{
if (IsPlayerInRangeOfPoint(playerid,3,774.213989,-48.924297,1000.585937))
{
SetPlayerPos(playerid,2795.5496,-1619.3833,10.9219);
SetPlayerInterior(playerid,0);
}
return 1;
}
return 0;
}