enter commands wont work -.-
#1

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/enter", cmdtext, true, 10) ==0)////////////////////////////////////////
        {
            if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254,-1100.4119,31.5547))//--House00000---
                {
                    SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
                    SetPlayerFacingAngle(playerid, 68.2839);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                    return 1;
                }//--------------------------------------------------------------------------------
            if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))//--Bank001---
                {
                    SetPlayerPos(playerid, 1417.3789,-989.1111,1639.7843);
                    SetPlayerFacingAngle(playerid, 269.2184);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                    return 1;
                }
        }//--------------------------------------------------------------------------------
    return 0;
}
second command wont work, when I come infront of the bank and type /enter it wont teleport me, even with
pawn Код:
else if
Reply
#2

Double-check the coordinates.
Reply
#3

Quote:
Originally Posted by TheXIII
Посмотреть сообщение
Double-check the coordinates.
yes they are ok
Reply
#4

pawn Код:
if(strcmp( cmdtext,"/enter", true) ==0)////////////////////////////////////////
        {
            if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254,-1100.4119,31.5547))//--House00000---
                {
                    SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
                    SetPlayerFacingAngle(playerid, 68.2839);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                    return 1;
                }//--------------------------------------------------------------------------------
           else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))//--Bank001---
                {
                    SetPlayerPos(playerid, 1417.3789,-989.1111,1639.7843);
                    SetPlayerFacingAngle(playerid, 269.2184);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                    return 1;
                }
        }//--------------------------------------------------------------------------------
    return 0;
}
Try that.
Reply
#5

Quote:
Originally Posted by ColdXX
Посмотреть сообщение
pawn Код:
if(strcmp( cmdtext,"/enter", true) ==0)////////////////////////////////////////
        {
            if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254,-1100.4119,31.5547))//--House00000---
                {
                    SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
                    SetPlayerFacingAngle(playerid, 68.2839);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                    return 1;
                }//--------------------------------------------------------------------------------
           else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))//--Bank001---
                {
                    SetPlayerPos(playerid, 1417.3789,-989.1111,1639.7843);
                    SetPlayerFacingAngle(playerid, 269.2184);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                    return 1;
                }
        }//--------------------------------------------------------------------------------
    return 0;
}
Try that.
like I said it doesnt work even with
pawn Код:
else if
but when I was testing interior it was good at first dont know whats wrong, ill give u my full script(only 2 houses lol):
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Populus RolePlay Server");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Populus RolePlay Server");
    print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
//////////////////////////////------------KUĆE----------------////////////////////////////////////////////////////////////////////
    //-------------------------------------000000000----------------------------------//-------------------------------------------
    CreateObject(15058,2205.09204102,-1101.95410156,17.86512375,0.00000000,0.00000000,66.00000000); //object(midvegsavehouse) (5)
    CreateObject(2290,2214.86547852,-1100.44299316,13.92762375,0.00000000,0.00000000,246.00000000); //object(swk_couch_1) (2)
    CreateObject(2260,2209.06738281,-1109.53442383,15.93447685,0.00000000,0.00000000,156.00000000); //object(frame_slim_1) (1)
    CreateObject(2291,2214.49780273,-1097.33605957,13.92762375,0.00000000,0.00000000,292.00000000); //object(swk_single_1) (1)
    CreateObject(2291,2212.21557617,-1103.07263184,13.92762375,0.00000000,0.00000000,158.00000000); //object(swk_single_1) (2)
    CreateObject(2126,2213.01757812,-1101.05932617,13.92762375,0.00000000,0.00000000,66.00000000); //object(coffee_swank_5) (1)
    CreateObject(2311,2206.19824219,-1098.73730469,13.93447685,0.00000000,0.00000000,65.99487305); //object(cj_tv_table2) (1)
    CreateObject(1752,2206.42724609,-1097.99365234,14.43996811,0.00000000,0.00000000,66.00000000); //object(swank_tv_3) (1)
    CreateObject(2078,2207.39379883,-1095.53076172,13.93447685,0.00000000,0.00000000,66.00000000); //object(swank_cabinet_1) (1)
    CreateObject(2229,2212.89404297,-1104.20922852,13.92762375,0.00000000,0.00000000,196.00000000); //object(swank_speaker) (1)
    CreateObject(2229,2215.60229492,-1100.06188965,13.92762375,0.00000000,0.00000000,246.00000000); //object(swank_speaker) (2)
    CreateObject(2232,2207.21679688,-1096.51208496,14.53235245,0.00000000,0.00000000,66.00000000); //object(med_speaker_4) (1)
    CreateObject(2232,2205.91333008,-1099.62512207,14.52549934,0.00000000,0.00000000,66.00000000); //object(med_speaker_4) (2)
    CreateObject(2104,2205.12573242,-1099.82336426,13.93937778,0.00000000,0.00000000,64.00000000); //object(swank_hi_fi) (1)
    CreateObject(2267,2207.45068359,-1102.55859375,16.00780296,0.00000000,0.00000000,156.00000000); //object(frame_wood_3) (2)
    CreateObject(2262,2204.49584961,-1101.98913574,15.67762375,0.00000000,0.00000000,336.00000000); //object(frame_slim_3) (1)
    CreateObject(15036,2193.96093750,-1103.53479004,15.07463074,0.00000000,0.00000000,246.00000000); //object(kit_cab_washin_sv) (2)
    CreateObject(2452,2191.59350586,-1106.12512207,13.92762375,0.00000000,0.00000000,66.00000000); //object(cj_ff_fridge2) (1)
    CreateObject(2029,2196.40332031,-1106.93225098,13.92762375,0.00000000,0.00000000,336.00000000); //object(swank_dinning_1) (1)
    CreateObject(2028,2206.95849609,-1097.52966309,14.12373352,0.00000000,0.00000000,46.00000000); //object(swank_console) (1)
    CreateObject(2124,2198.35668945,-1107.75769043,14.75909138,0.00000000,0.00000000,336.00000000); //object(swank_din_chair_1) (1)
    CreateObject(2124,2196.31665039,-1108.24377441,14.75909138,0.00000000,0.00000000,246.00000000); //object(swank_din_chair_1) (2)
    CreateObject(2124,2195.39184570,-1106.54785156,14.75909138,0.00000000,0.00000000,156.00000000); //object(swank_din_chair_1) (3)
    CreateObject(2124,2197.28881836,-1106.08398438,14.75909138,0.00000000,0.00000000,66.00000000); //object(swank_din_chair_1) (4)
    CreateObject(2601,2192.29003906,-1105.44665527,15.10552692,0.00000000,0.00000000,0.00000000); //object(cj_juice_can) (1)
    CreateObject(2601,2192.09570312,-1105.59326172,15.11225128,0.00000000,0.00000000,0.00000000); //object(cj_juice_can) (2)
    CreateObject(2601,2191.88061523,-1106.08312988,15.09754753,0.00000000,0.00000000,0.00000000); //object(cj_juice_can) (3)
    CreateObject(2851,2192.65820312,-1104.00427246,14.96818924,0.00000000,0.00000000,0.00000000); //object(gb_kitchdirt05) (1)
    CreateObject(2350,2202.28515625,-1098.23010254,14.29977512,0.00000000,0.00000000,66.00000000); //object(cj_barstool_2) (1)
    CreateObject(2350,2203.02197266,-1096.56872559,14.29977512,0.00000000,0.00000000,64.00000000); //object(cj_barstool_2) (2)
    CreateObject(1732,2197.55859375,-1097.90283203,14.77459431,0.00000000,0.00000000,156.00000000); //object(cj_juke_box) (1)
    CreateObject(3004,2202.00292969,-1093.61828613,14.88957214,0.00000000,266.00000000,49.99996948); //object(k_poolq2) (1)
    CreateObject(3004,2201.94189453,-1093.66845703,14.81957245,0.00000000,0.00000000,64.00000000); //object(k_poolq2) (2)
    CreateObject(3003,2201.63574219,-1092.90295410,14.85797024,0.00000000,0.00000000,0.00000000); //object(k_poolballcue) (2)
    CreateObject(1799,2200.42773438,-1093.18273926,18.43543625,0.00000000,0.00000000,336.00000000); //object(med_bed_4) (1)
    CreateObject(2817,2201.61743164,-1092.88818359,18.43543625,0.00000000,0.00000000,156.00000000); //object(gb_bedrug01) (1)
    CreateObject(2330,2205.44506836,-1093.63647461,18.42776108,0.00000000,0.00000000,248.00000000); //object(cj_bedroom1_w) (1)
    CreateObject(2330,2204.71997070,-1095.41418457,18.42776108,0.00000000,0.00000000,248.00000000); //object(cj_bedroom1_w) (2)
    CreateObject(2330,2203.98583984,-1097.22399902,18.42776108,0.00000000,0.00000000,248.00000000); //object(cj_bedroom1_w) (3)
    CreateObject(2383,2206.11132812,-1093.94445801,19.96557426,0.00000000,0.00000000,156.00000000); //object(cj_6_sweater) (1)
    CreateObject(2389,2205.75024414,-1094.83776855,19.98219490,0.00000000,0.00000000,248.00000000); //object(cj_4_sweaters) (1)
    CreateObject(2391,2205.38183594,-1095.73254395,19.97683144,0.00000000,0.00000000,246.00000000); //object(cj_jean_cream) (1)
    CreateObject(2396,2205.03442383,-1096.59277344,20.01188087,0.00000000,0.00000000,248.00000000); //object(cj_4_s_sweater) (1)
    CreateObject(2689,2204.65209961,-1097.53186035,19.94983292,0.00000000,0.00000000,248.00000000); //object(cj_hoodie_2) (1)
    CreateObject(2397,2204.29248047,-1098.42175293,20.02130127,0.00000000,0.00000000,246.00000000); //object(cj_trackies_dark) (1)
    CreateObject(2323,2196.80151367,-1096.20397949,18.43543625,0.00000000,0.00000000,160.00000000); //object(cj_bedroom1) (1)
    CreateObject(1999,2198.26611328,-1098.05114746,18.43543625,0.00000000,0.00000000,156.00000000); //object(officedesk2) (1)
    CreateObject(1663,2197.61645508,-1096.62915039,18.89565086,0.00000000,0.00000000,14.00000000); //object(swivelchair_b) (1)
    CreateObject(2256,2196.62963867,-1093.49145508,20.68304253,0.00000000,0.00000000,66.00000000); //object(frame_clip_3) (1)
    CreateObject(2526,2193.20727539,-1094.76977539,18.43543625,0.00000000,0.00000000,156.00000000); //object(cj_bath4) (1)
    CreateObject(2525,2193.70117188,-1098.03039551,18.43543625,0.00000000,0.00000000,246.00000000); //object(cj_toilet4) (1)
    CreateObject(2524,2189.92822266,-1099.15942383,18.43543625,0.00000000,0.00000000,68.00000000); //object(cj_b_sink4) (1)
    CreateObject(2835,2191.47485352,-1095.86059570,18.43543625,0.00000000,0.00000000,336.00000000); //object(gb_livingrug04) (1)
    CreateObject(2373,2191.09936523,-1102.33923340,18.51111984,0.00000000,0.00000000,156.00000000); //object(clothes_rail3) (1)
    CreateObject(2846,2190.45458984,-1096.72094727,18.58967590,0.00000000,0.00000000,316.00000000); //object(gb_bedclothes05) (1)
    CreateObject(2705,2191.12475586,-1101.82312012,20.01455498,0.00000000,0.00000000,254.00000000); //object(cj_hoodie_04) (1)
    CreateObject(2303,2194.57885742,-1095.58190918,18.43543625,0.00000000,0.00000000,334.00000000); //object(cj_k3_wash_mac) (1)
    CreateObject(2741,2189.74487305,-1098.31457520,19.72540855,0.00000000,0.00000000,66.00000000); //object(cj_soap_disp) (1)
    CreateObject(2295,2198.58496094,-1090.56237793,18.43543625,0.00000000,0.00000000,22.00000000); //object(cj_beanbag) (1)
    CreateObject(1545,2205.87792969,-1097.40539551,15.62090302,0.00000000,0.00000000,246.00000000); //object(cj_b_optic1) (1)
    CreateObject(1546,2205.85961914,-1097.27001953,15.06362724,0.00000000,0.00000000,0.00000000); //object(cj_pint_glass) (2)
    CreateObject(1546,2205.77221680,-1097.49401855,15.06362724,0.00000000,0.00000000,238.00000000); //object(cj_pint_glass) (3)
    CreateObject(1546,2205.66503906,-1097.69812012,15.06362724,0.00000000,0.00000000,250.00000000); //object(cj_pint_glass) (4)
    CreateObject(1546,2205.96899414,-1097.09533691,15.06362724,0.00000000,0.00000000,76.00000000); //object(cj_pint_glass) (6)
    CreateObject(2964,2201.30419922,-1093.09899902,13.93164253,0.00000000,0.00000000,338.00000000); //object(k_pooltablesm) (2)
    CreateObject(3029,2211.51269531,-1109.89001465,13.93663025,0.00000000,0.00000000,336.00000000); //object(cr1_door) (2)
    CreateObject(2987,2195.95410156,-1104.35583496,19.63393593,0.00000000,0.00000000,156.00000000); //object(lxr_motel_doorsim) (1)
    CreateObject(2816,2213.13232422,-1100.10339355,14.43510532,0.00000000,0.00000000,118.00000000); //object(gb_bedmags01) (1)
    CreateObject(2500,2204.98974609,-1096.87890625,14.97449875,0.00000000,0.00000000,336.00000000); //object(cj_ff_coffee) (1)
//////////////////------------------------------BANKE------------------------/////////////////////
//_-------------------------------------------000001--------------------------_////////////////////
    CreateObject(14789,1424.69030800,-1004.06616200,1643.01867700,0.00000000,0.00000000,89.99998128); //object
    CreateObject(2774,1433.02624500,-1004.64392100,1635.81982400,0.00000000,0.00000000,0.00000000); //object(1)
    CreateObject(2774,1429.29699700,-1004.61865200,1641.28112800,0.00000000,0.00000000,0.00000000); //object(2)
    CreateObject(2774,1440.95703100,-979.68206800,1640.29772900,0.00000000,0.00000000,0.00000000); //object(3)
    CreateObject(2774,1429.33715800,-979.54528800,1639.72338900,0.00000000,0.00000000,0.00000000); //object(4)
    CreateObject(2774,1449.31408700,-984.50500500,1648.02319300,0.00000000,0.00000000,0.00000000); //object(5)
    CreateObject(2774,1413.91406300,-984.51538100,1643.07348600,0.00000000,0.00000000,0.00000000); //object(6)
    CreateObject(1886,1448.51013200,-1003.64294400,1647.09399400,19.76704393,0.00000000,-136.64161059); //object(8)
    CreateObject(1886,1414.70654300,-980.60443100,1647.06164600,19.76704393,0.00000000,-316.64163044); //object(9)
    CreateObject(2774,1430.41687000,-999.01727300,1638.72241200,0.00000000,-90.24079544,0.00000000); //object(19)
    CreateObject(2774,1408.14929200,-998.99682600,1638.72241200,0.00000000,-90.24079544,-179.99996255); //object(20)
    CreateObject(2774,1443.57727100,-986.63464400,1638.72338900,0.00000000,-90.24079544,-89.99998128); //object(21)
    CreateObject(2774,1443.60449200,-998.99816900,1647.79748500,0.00000000,0.00000000,0.00000000); //object(22)
    CreateObject(11359,1414.35620100,-988.98535200,1639.79589800,0.00000000,0.00000000,89.99998128); //object(26)
    CreateObject(2774,1413.92736800,-986.01171900,1643.04699700,0.00000000,0.00000000,-89.99998128); //object(27)
    CreateObject(2774,1413.76367200,-992.08538800,1643.67334000,0.00000000,0.00000000,0.00000000); //object(28)
    CreateObject(626,1427.55456500,-997.32299800,1640.76647900,0.00000000,0.00000000,134.99997191); //object(31)
    CreateObject(626,1427.48828100,-990.75250200,1640.84155300,0.00000000,0.00000000,134.99997191); //object(32)
    CreateObject(2773,1427.75671400,-995.78118900,1639.31018100,0.00000000,0.00000000,0.00000000); //object(33)
    CreateObject(2773,1427.69494600,-992.84143100,1639.31018100,0.00000000,0.00000000,0.00000000); //object(34)
    CreateObject(2773,1427.59692400,-989.12860100,1639.30151400,0.00000000,0.00000000,0.00000000); //object(35)
    CreateObject(2773,1429.86315900,-982.92736800,1639.31018100,0.00000000,0.00000000,89.99998128); //object(36)
    CreateObject(626,1427.66528300,-983.12860100,1640.84155300,0.00000000,0.00000000,236.24997950); //object(37)
    CreateObject(2773,1432.75585900,-982.99078400,1639.31018100,0.00000000,0.00000000,89.99998128); //object(38)
    CreateObject(626,1434.64831500,-983.18890400,1640.84155300,0.00000000,0.00000000,236.24997950); //object(39)
    CreateObject(2773,1437.09143100,-983.05499300,1639.31018100,0.00000000,0.00000000,89.99998128); //object(40)
    CreateObject(2773,1440.04028300,-983.01275600,1639.31018100,0.00000000,0.00000000,89.99998128); //object(41)
    CreateObject(3462,1448.46691900,-993.01446500,1640.29797400,0.00000000,0.00000000,0.00000000); //object(43)
    CreateObject(3462,1448.51208500,-982.99261500,1640.18151900,0.00000000,0.00000000,0.00000000); //object(44)
    CreateObject(626,1441.63623000,-997.04772900,1640.74145500,0.00000000,0.00000000,-213.74998418); //object(45)
    CreateObject(14632,1443.64868200,-995.93463100,1638.66772500,0.00000000,0.00000000,-270.00000112); //object(50)
    CreateObject(14632,1432.15637200,-1018.01525900,1639.98815900,0.00000000,0.00000000,-89.99998128); //object(51)
    CreateObject(1514,1432.29492200,-998.85247800,1639.74011200,0.00000000,0.00000000,-180.00001985); //object(52)
    CreateObject(1514,1438.35253900,-998.84674100,1639.81567400,0.00000000,0.00000000,-180.00001985); //object(53)
    CreateObject(2773,1435.18383800,-996.75927700,1639.30151400,0.00000000,0.00000000,0.00000000); //object(54)
    CreateObject(2773,1435.15246600,-993.93255600,1639.30151400,0.00000000,0.00000000,0.00000000); //object(55)
    CreateObject(2773,1439.33862300,-996.65869100,1639.30151400,0.00000000,0.00000000,0.00000000); //object(56)
    CreateObject(2773,1439.28894000,-994.00067100,1639.30151400,0.00000000,0.00000000,0.00000000); //object(57)
    CreateObject(1723,1426.28015100,-994.86358600,1638.70727500,0.00000000,0.00000000,-89.99998128); //object(58)
    CreateObject(1723,1426.24462900,-991.15045200,1638.73230000,0.00000000,0.00000000,-89.99998128); //object(59)
    CreateObject(1723,1422.27746600,-996.93505900,1638.68225100,0.00000000,0.00000000,-270.00000112); //object(60)
    CreateObject(1723,1422.27929700,-993.21002200,1638.65722700,0.00000000,0.00000000,-270.00000112); //object(61)
    CreateObject(2637,1424.23242200,-992.17358400,1638.83874500,0.00000000,0.00000000,-89.99998128); //object(67)
    CreateObject(2637,1424.22851600,-995.70416300,1638.83874500,0.00000000,0.00000000,-89.99998128); //object(68)
    CreateObject(3657,1432.63330100,-987.73901400,1639.20239300,0.00000000,0.00000000,0.00000000); //object(71)
    CreateObject(3657,1432.63110400,-986.97723400,1639.20239300,0.00000000,0.00000000,-179.99996255); //object(72)
    CreateObject(3657,1438.11157200,-986.97753900,1639.20239300,0.00000000,0.00000000,-179.99996255); //object(73)
    CreateObject(3657,1438.08630400,-987.73071300,1639.22741700,0.00000000,0.00000000,-359.99998240); //object(74)
    CreateObject(2961,1439.02832000,-999.82666000,1639.21130400,0.00000000,0.00000000,0.00000000); //object(68)
    CreateObject(2961,1433.50561500,-999.82763700,1639.30139200,0.00000000,0.00000000,0.00000000); //object(69)
    CreateObject(2946,1414.35522500,-990.51348900,1638.75561500,0.00000000,0.00000000,0.00000000); //object(74)
    CreateObject(2946,1414.38024900,-987.39251700,1638.75500500,0.00000000,0.00000000,-180.00001985); //object(75)
    CreateObject(2963,1424.16528300,-1004.81567400,1640.78112800,0.00000000,0.00000000,-89.99998128); //object(80)
    CreateObject(2963,1426.80676300,-1004.83252000,1640.82690400,0.00000000,0.00000000,89.99998128); //object(81)
    CreateObject(1886,1414.73059100,-993.52301000,1646.90856900,17.18873385,0.00000000,67.49998596); //object(82)
    CreateObject(2773,1431.41455100,-996.84582500,1639.30151400,0.00000000,0.00000000,0.00000000); //object(87)
    CreateObject(2773,1431.47338900,-994.01709000,1639.30151400,0.00000000,0.00000000,0.00000000); //object(88)
    CreateObject(632,1434.73535200,-987.75750700,1639.13122600,0.00000000,0.00000000,-146.24999822); //object(89)
    CreateObject(2942,1417.71362300,-980.47515900,1639.36352500,0.00000000,0.00000000,0.00000000); //object(62)
    CreateObject(1216,1443.28137200,-989.31127900,1639.38781700,0.00000000,0.00000000,-89.99998128); //object(67)
    CreateObject(2942,1421.21716300,-980.44891400,1639.38549800,0.00000000,0.00000000,0.00000000); //object(68)
    CreateObject(2942,1424.63049300,-980.52667200,1639.37146000,0.00000000,0.00000000,0.00000000); //object(69)
    CreateObject(1216,1443.27783200,-991.42486600,1639.42419400,0.00000000,0.00000000,-89.99998128); //object(70)
    CreateObject(1216,1443.25122100,-987.27819800,1639.37622100,0.00000000,0.00000000,-89.99998128); //object(71)
    CreateObject(1216,1443.25976600,-985.48498500,1639.37622100,0.00000000,0.00000000,-89.99998128); //object(72)
    CreateObject(2773,1441.22863800,-993.04296900,1639.30151400,0.00000000,0.00000000,-89.99998128); //object(73)
    CreateObject(2824,1424.29724100,-992.05493200,1639.24768100,0.00000000,0.00000000,78.75001226); //object(79)
    CreatePickup(1274, 23, 1412.0670,-1699.9690,13.5395, 0);

    return 1;
}

public OnGameModeExit()
{
}

public OnPlayerRequestClass(playerid, classid)
{
    return 1;
}

public OnPlayerConnect(playerid)
{
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/enter", cmdtext, true, 10) ==0)////////////////////////////////////////
        {
            if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254,-1100.4119,31.5547))//--House00000---
                {
                    SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
                    SetPlayerFacingAngle(playerid, 68.2839);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                    return 1;
                }//--------------------------------------------------------------------------------
            else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))//--Bank001---
                {
                    SetPlayerPos(playerid, 1417.3789,-989.1111,1639.7843);
                    SetPlayerFacingAngle(playerid, 269.2184);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                    return 1;
                }
        }//--------------------------------------------------------------------------------
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
    return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 1;
}

public OnRconCommand(cmd[])
{
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    return 1;
}

public OnObjectMoved(objectid)
{
    return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
    return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    return 1;
}

public OnPlayerExitedMenu(playerid)
{
    return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    return 1;
}

public OnPlayerUpdate(playerid)
{
    return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
    return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
    return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}
Reply
#6

Yea but have u noticed that i've made some changes in the commands list? If so,didnt that work eighter?
Reply
#7

Quote:
Originally Posted by ColdXX
Посмотреть сообщение
Yea but have u noticed that i've made some changes in the commands list? If so,didnt that work eighter?
nope
[The message you have entered is too short. Please lengthen your message to at least 8 characters.]
Reply
#8

Well the try this
pawn Код:
if(strcmp( cmdtext,"/enter", true) ==0)////////////////////////////////////////
        {
            if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254,-1100.4119,31.5547))//--House00000---
                {
                    SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
                    SetPlayerFacingAngle(playerid, 68.2839);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                   }
                   return 1;
                }//--------------------------------------------------------------------------------
                if(strcmp( cmdtext,"/enter", true) ==0)
                {
                if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))//--Bank001---
                {
                    SetPlayerPos(playerid, 1417.3789,-989.1111,1639.7843);
                    SetPlayerFacingAngle(playerid, 269.2184);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                    }
                   return 1;
                }
        }//--------------------------------------------------------------------------------
    return 0;
}
Reply
#9

Here m8, use this
Quote:

if (newkeys & KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(2,playerid,-2026.55,-102.06,35.16)) // Door
{
SetPlayerPos(playerid,-2026.83,-104.96,1035.17); // Inside
SetPlayerInterior(playerid,3);
}
return 1;
}

Reply
#10

Quote:
Originally Posted by M.5
Посмотреть сообщение
Here m8, use this
Explane this. Wtf. Ok im going to school ill try this 2 types when i come back. So till then pls explane me that code
Reply
#11

This code is when you are near door press ENTER this goes intu the house without any command. Just use your cordinates!
Reply
#12

try to remove the 10 after the true...
Code:
if(strcmp("/enter", cmdtext, true, 10) ==0)
AFTER:
Code:
if(strcmp("/enter", cmdtext, true) ==0)
Reply
#13

dude mauby u have another command like /enter in ur server ... o_0
Reply
#14

You may be mixing ZCMD and STRCMP and if you are, that's why it won't work.
Reply
#15

Quote:
Originally Posted by XePloiT
View Post
try to remove the 10 after the true...
Code:
if(strcmp("/enter", cmdtext, true, 10) ==0)
AFTER:
Code:
if(strcmp("/enter", cmdtext, true) ==0)
wont work

Quote:
Originally Posted by M.5
View Post
This code is when you are near door press ENTER this goes intu the house without any command. Just use your cordinates!
sounds good give me a link of tutorial how to do that

Quote:
Originally Posted by Rafa
View Post
dude mauby u have another command like /enter in ur server ... o_0
no i dont

Quote:
Originally Posted by RealCop228
View Post
You may be mixing ZCMD and STRCMP and if you are, that's why it won't work.
no, strcmp is something that I use as more as it is possible, and what im trying to do is to make more /enter commands in 1 place... so /enter command is usable only when IsPlayerInRangeOfPoint1 blahblah, IsPlayerInRangeOfPoint2.... and so on
Reply
#16

pawn Code:
if(!strcmp(cmdtext, "/enter", true))
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254, -1100.4119, 31.5547))
    {
        SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
        SetPlayerFacingAngle(playerid, 68.2839);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))
    {
        SetPlayerPos(playerid, 1417.3789,-989.1111,1639.7843);
        SetPlayerFacingAngle(playerid, 269.2184);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 10);
    }
    return 1;
}
It works fine for me.
Reply
#17

Delete the return 1; on the first if not else if
The_Moddler's code should work
Reply
#18

Quote:
Originally Posted by Mean
View Post
Delete the return 1; on the first if not else if
The_Moddler's code should work
ok ill try this 2 examples when I come home(2 hours of fce english lessons 2 hours after school -.- didnt want to go home so came to dads office )-->
Quote:
Originally Posted by The_Moddler
View Post
pawn Code:
if(!strcmp(cmdtext, "/enter", true))
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254, -1100.4119, 31.5547))
    {
        SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
        SetPlayerFacingAngle(playerid, 68.2839);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))
    {
        SetPlayerPos(playerid, 1417.3789,-989.1111,1639.7843);
        SetPlayerFacingAngle(playerid, 269.2184);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 10);
    }
    return 1;
}
It works fine for me.
ty Ill try that btw why !strcmp??
Quote:
Originally Posted by ColdXX
View Post
Well the try this
pawn Code:
if(strcmp( cmdtext,"/enter", true) ==0)////////////////////////////////////////
        {
            if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254,-1100.4119,31.5547))//--House00000---
                {
                    SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
                    SetPlayerFacingAngle(playerid, 68.2839);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                   }
                   return 1;
                }//--------------------------------------------------------------------------------
                if(strcmp( cmdtext,"/enter", true) ==0)
                {
                if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))//--Bank001---
                {
                    SetPlayerPos(playerid, 1417.3789,-989.1111,1639.7843);
                    SetPlayerFacingAngle(playerid, 269.2184);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerInterior(playerid, 10);
                    }
                   return 1;
                }
        }//--------------------------------------------------------------------------------
    return 0;
}
Ill try that too ty guys hope 1 will work cuz this is already annoying
Reply
#19

Quote:
Originally Posted by HrvojeCro
View Post
ok ill try this 2 examples when I come home(2 hours of fce english lessons 2 hours after school -.- didnt want to go home so came to dads office )-->


ty Ill try that btw why !strcmp??


Ill try that too ty guys hope 1 will work cuz this is already annoying
This won't even work..

I used !strcmp because strcmp returns 0 if the comparsion of both strings are the same.
Reply
#20

doesn't work -.-
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)