[POMOC]/enter, /exit

Započeo Mr.Glavonja, Februar 19, 2012, 16:07:36 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Gamemod koji koristim:BN
Detaljan opis problema: Zelio bih da promijenim komandu /enter /exit znaci da se u objekte ulazi sa slovom F
Dio skript:
CMD:enter(playerid, params[])
{
new string[128];
    if(IsPlayerConnected(playerid))
{

for(new i = 0; i < sizeof(Houses); i++)
{

if (Houses[i][LockStatus] == 1 && IsPlayerInRangeOfPoint( playerid, 3, Houses[i][hExteriorX], Houses[i][hExteriorY], Houses[i][hExteriorZ]))
{
format(string, sizeof(string), "~g~Kuca je ~r~Zakljucana");
TextDrawSetString(Kucazakljucana, string);
TextDrawShowForPlayer(playerid, Kucazakljucana);
SetTimerEx("UnistikucaenterTxT",8000, false, "i", playerid);
//SendClientMessage(playerid, WHITE, "Kuca je zakljucana");
return 1;
}
   else if(IsPlayerInRangeOfPoint( playerid, 3, Houses[i][hExteriorX], Houses[i][hExteriorY], Houses[i][hExteriorZ]) && Houses[i][LockStatus] == 0)
    {
PlayerInfo[playerid][pInHouse] = i;
        SetPlayerVirtualWorld( playerid, i+1 );
        SetPlayerInterior( playerid, Houses[PlayerInfo[playerid][pInHouse]][hInteriorID]);
        SetPlayerPos( playerid, Houses[PlayerInfo[playerid][pInHouse]][hInteriorX], Houses[PlayerInfo[playerid][pInHouse] ][hInteriorY], Houses[PlayerInfo[playerid][pInHouse]][hInteriorZ]);

    }
}
for( new i = 0; i < sizeof( Businesses ); i++ )
{
    if(IsPlayerInRangeOfPoint( playerid, 3, Businesses[i][bExteriorX], Businesses[i][bExteriorY], Businesses[i][bExteriorZ]) )
    {
        if(GetPlayerVirtualWorld( playerid ) == 0 )
        {
            if(Businesses[i][bLockStatus] == 0 )
            {
        SetPlayerVirtualWorld( playerid, 65000+i);UlazInfo[playerid] = 2;
        SetPlayerInterior( playerid, Businesses[i][bInteriorID]);
        SetPlayerPos( playerid, Businesses[i][bInteriorX], Businesses[i][bInteriorY], Businesses[i][bInteriorZ]);
        SendClientMessage( playerid, WHITE, "Usao si u firmu. Koristi /komande da vidis koje komande su ti dostupne ovdje!" );
                    PlayerInfo[playerid][pInBusiness] = i;
        }
        else
        {
format(string, sizeof(string), "~g~Firma je ~r~Zatvorena");
TextDrawSetString(Firmazakljucana, string);
TextDrawShowForPlayer(playerid, Firmazakljucana);
SetTimerEx("UnistikucaenterTxT",8000, false, "i", playerid);
            //SendClientMessage( playerid, WHITE, "Firma je zatvorena!" );
        }
        }
    }
}

if (PlayerToPoint(3.0, playerid,1481.0206,-1771.1138,18.7958))
{
    SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,387.7978,173.8582,1008.3828);
GameTextForPlayer(playerid, "~w~Dobrodosli u Gradsku Vijecnicu", 5000, 1);
PlayerInfo[playerid][pInt] = 3;UlazInfo[playerid] = 3;
PlayerInfo[playerid][pLocal] = 241;
}
if (IsPlayerInRangeOfPoint( playerid,3.0,2362.9539,-654.0048,128.9525))
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 )
{
SCM(playerid, 0xFF8080FF, "Mi ne znamo o cemu govorite");
return 1;
}
if(GetPVarInt(playerid, "Posao") == 4)
{
    SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,318.68615722656,1114.8942871094,1083.8828125);
GameTextForPlayer(playerid, "~w~Dobrodosao u obicnu kucu", 5000, 1);
PlayerInfo[playerid][pInt] = 5;UlazInfo[playerid] = 4;
PlayerInfo[playerid][pLocal] = 5;
}
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1734.4749,1169.5908,10.8203))
{
SetPlayerPos(playerid, 1705.3492,1183.5206,35.8359);UlazInfo[playerid] = 5;
}
if (IsPlayerInRangeOfPoint( playerid,3.0,2508.2346,-2205.7024,13.5469))
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 )
{
SCM(playerid, 0xFF8080FF, "Mi ne znamo o cemu govorite");
return 1;
}
if(GetPVarInt(playerid, "Posao") == 4)
{
    SetPlayerInterior(playerid,2);UlazInfo[playerid] = 6;
SetPlayerPos(playerid,2541.9001464844, -1304.0466308594, 1025.0703125);
GameTextForPlayer(playerid, "~w~Dobrodosao u fabriku", 5000, 1);
PlayerInfo[playerid][pInt] = 2;
PlayerInfo[playerid][pLocal] = 2;
}
}

if (PlayerToPoint(3.0, playerid,1172.3878173828,-1325.3787841797,15.406136512756))
{
    SetPlayerInterior(playerid,18);UlazInfo[playerid] = 7;
SetPlayerPos(playerid,1726.8814697266,-1638.4230957031,20.22322845459);
GameTextForPlayer(playerid, "~w~LS New Generation Racers", 5000, 1);
PlayerInfo[playerid][pInt] = 18;
}
if (PlayerToPoint(3.0, playerid,1147.9493408203,-1343.2375488281,13.647164344788))
{
    SetPlayerInterior(playerid,0);UlazInfo[playerid] = 8;
SetPlayerPos(playerid,1163.3824462891,-1329.9652099609,31.484870910645);
GameTextForPlayer(playerid, "~w~LS New Generation Racers Helipad", 5000, 1);
PlayerInfo[playerid][pInt] = 0;
}

else if (PlayerToPoint(3.0, playerid, 1654.04, -1654.76, 22.52))
{
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,246.44731140137,107.80811309814,1003.21875);
PlayerInfo[playerid][pInt] = 10;

}
}
else if (PlayerToPoint(3.0, playerid, 2563.7197,-2201.0986,-0.2188))
{
    if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
    {
    SetPlayerInterior(playerid,3);UlazInfo[playerid] = 9;
SetPlayerPos(playerid, 964.106994,-53.205497,1001.124572);
PlayerInfo[playerid][pInt] = 3;

}
}
else if (PlayerToPoint(3.0, playerid, 2524.71, -1658.64, 15.82))
{
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    {
    SetPlayerInterior(playerid,3);UlazInfo[playerid] = 9;
SetPlayerPos(playerid,2496.049804,-1695.238159,1014.742187);
PlayerInfo[playerid][pInt] = 3;

}
}
else if (PlayerToPoint(3.0, playerid,1653.91, -1654.76, 22.52))
{
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    SetPlayerInterior(playerid,10);UlazInfo[playerid] = 9;
SetPlayerPos(playerid,246.44731140137,107.80811309814,1003.21875);
PlayerInfo[playerid][pInt] = 10;

}
}
else if (PlayerToPoint(3.0, playerid,1462.3958,-1012.3912, 26.8438))
{
    SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2305.6890,-16.0881,26.7496);UlazInfo[playerid] = 10;
PlayerInfo[playerid][pInt] = 0;
}
else if (PlayerToPoint(3.0, playerid, 972.41, -1544.34, 13.60))
{
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
                    GameTextForPlayer(playerid, "~y~Yakuza", 5000, 1);
SetPlayerPos(playerid, -2158.97, 642.83, 1052.38);
SetPlayerInterior(playerid, 1);

}
}
else if (PlayerToPoint(3.0, playerid, 323.93, -1518.45, 36.03))
{
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    SetPlayerInterior(playerid,3);UlazInfo[playerid] = 12;
SetPlayerPos(playerid,288.8122,166.9863,1007.1719);
PlayerInfo[playerid][pInt] = 0;

}
}
else if (PlayerToPoint(3.0, playerid, 302.69, -1534.21, 24.92))
{
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    SetPlayerInterior(playerid,3);UlazInfo[playerid] = 13;
SetPlayerPos(playerid,238.72360229492,138.92004394531,1003.0234375);
PlayerInfo[playerid][pInt] = 3;
}
}
else if (PlayerToPoint(3.0, playerid,1221.9865722656, -1811.9674072266, 16.59375))
{
    if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    {
    SetPlayerInterior(playerid,3);UlazInfo[playerid] = 14;
SetPlayerPos(playerid,1043.6527099609,10.261295318604,1001.2844848633);
PlayerInfo[playerid][pInt] = 3;
}
}
else if (PlayerToPoint(3.0, playerid, 1213.1655273438, -1655.0930175781,11.796875))
{
    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    SetPlayerInterior(playerid,3);UlazInfo[playerid] = 15;
SetPlayerPos(playerid, -2636.8112792969,1403.1235351563,906.4609375);
PlayerInfo[playerid][pInt] = 3;
}
}
else if (PlayerToPoint(3.0, playerid, -2634.4772949219, 1409.7459716797,906.46466064453))
{
    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    SetPlayerInterior(playerid,0);UlazInfo[playerid] = 16;
SetPlayerPos(playerid, 1274.5483398438,-1689.0384521484,34.79907989502);
PlayerInfo[playerid][pInt] = 0;
}
}
else if (PlayerToPoint(3.0, playerid,1038.3101806641, -3.9410219192505, 1001.2844848633))
{
    if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    {
    SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1204.7012939453, -1812.1450195313, 30.035457611084);
PlayerInfo[playerid][pInt] = 0;
}
}
else if (PlayerToPoint(3.0, playerid,246.49775695801,88.030456542969,1003.640625))
{
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
    GameTextForPlayer(playerid, "~w~PD Helipad", 5000, 1);
    SetPlayerInterior(playerid,0);UlazInfo[playerid] = 18;
SetPlayerPos(playerid, 1565.080078125,-1686.3544921875,28.395587921143);
                }
}
else if (PlayerToPoint(3.0, playerid,690.40307617188,-1276.0355224609,13.559878349304))
{
if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5)
{
    GameTextForPlayer(playerid, "~y~Sicilian Crime ~n~~w~ Family", 5000, 1);
    SetPlayerInterior(playerid,5);UlazInfo[playerid] = 21;
SetPlayerPos(playerid, 1261.1790771484,-785.58453369141,1091.90625);
                }
}
else if (PlayerToPoint(3.0, playerid,-217.90686035156,1402.7664794922,27.7734375))
{
if(PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12)
{
    GameTextForPlayer(playerid, "~y~MS13 ~n~~w~ Helipad", 5000, 1);
    SetPlayerInterior(playerid,0);UlazInfo[playerid] = 23;
SetPlayerPos(playerid, 2791.8693847656, -1629.4299316406, 21.366069793701);
                }
}
else if (PlayerToPoint(3.0, playerid,1287.2922,-772.3537,1091.9063))
{
if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5)
{
    GameTextForPlayer(playerid, "~y~LCN ~n~~w~ Balkon", 5000, 1);
    SetPlayerInterior(playerid,0);UlazInfo[playerid] = 24;
SetPlayerPos(playerid, 720.7682,-1276.9056,17.6484);
                }
}
else if (PlayerToPoint(3.0, playerid, 2481.03515625,-1536.6405029297,24.165042877197))
{
if(PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12)
{
    GameTextForPlayer(playerid, "~y~ESL ~n~~w~", 5000, 1);
    SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid, -229.0830078125, 1401.263671875, 27.765625);
                }
}
else if (PlayerToPoint(3.0, playerid, 732.44, -1353.05, 13.50))
{
if(PlayerInfo[playerid][pMember] == 9||PlayerInfo[playerid][pLeader] == 9)
{
    GameTextForPlayer(playerid, "~y~Cable News ~n~~w~Network", 5000, 1);
    SetPlayerInterior(playerid,3);UlazInfo[playerid] = 26;
SetPlayerPos(playerid, -2026.9858398438, -104.23425292969, 1035.171875);
                }
}
else if (PlayerToPoint(3.0, playerid,1553.1412,-1675.6227,16.1953))
{
    SetPlayerInterior(playerid,6);UlazInfo[playerid] = 28;
SetPlayerPos(playerid,246.7840,63.9002,1003.6406);
}
}
return 1;
}
______________________________________________
Havana RolePlay 0.3z
Server IP: 193.192.59.222:7778
Forum: Uskoro
TeamSpeak: Uskoro!
Otvorenje: 27.02.2014
_____________________________________________

Pogledaj tut KLIK  ;)

[[/center]
DgL <3
Otisao s Foruma zz


ovdje je sa if a kod mene je cmd:enter
______________________________________________
Havana RolePlay 0.3z
Server IP: 193.192.59.222:7778
Forum: Uskoro
TeamSpeak: Uskoro!
Otvorenje: 27.02.2014
_____________________________________________

Kada ubacim ovako kao sto si mi ti gore stavio pojavi mi eror
______________________________________________
Havana RolePlay 0.3z
Server IP: 193.192.59.222:7778
Forum: Uskoro
TeamSpeak: Uskoro!
Otvorenje: 27.02.2014
_____________________________________________

pa moras svoje kordinate i sve citaj sve fino lik objasnio!!
[[/center]
DgL <3
Otisao s Foruma zz


Pa ubacim ovako i kordinate i sve ali mi opet javlja eror pomozite pls
______________________________________________
Havana RolePlay 0.3z
Server IP: 193.192.59.222:7778
Forum: Uskoro
TeamSpeak: Uskoro!
Otvorenje: 27.02.2014
_____________________________________________

Jeli ja trebam izbrisati ovu staru komandu ovo cmd:enter
______________________________________________
Havana RolePlay 0.3z
Server IP: 193.192.59.222:7778
Forum: Uskoro
TeamSpeak: Uskoro!
Otvorenje: 27.02.2014
_____________________________________________