[Pomoc]Problem oko kuca

Započeo Dane, Jul 15, 2011, 14:01:22 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:T-City
Detaljan opis problema:Znači kad uÅ¡em u kuću i hoću da izaÄ'em baci me tamo bogu iza nogu,kako to popravit??
Dio skripte:evo /exit:
if(strcmp(cmd, "/exit", true) == 0)
{
   if(IsPlayerConnected(playerid))
{
             new virtualworld = GetPlayerVirtualWorld(playerid);
for(new i = 0; i <  sizeof(HouseInfo); i++)
{
//printf("House :%d",i);
if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
if(HouseInfo[i][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 100.0)
{
SetPlayerHealth(playerid,100.0);
}
}
}
}
for(new i = 0; i <  sizeof(BizzInfo); i++)
{
if (IsPlayerInRangeOfPoint(playerid, 3,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
{
   if(virtualworld == 0)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,928.911010,-1352.995849,13.343793);
}
else if(virtualworld == 1)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,2398.624023,-1899.201416,13.546895);
}
else if(virtualworld == 2)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,810.484924,-1616.245117,13.546895);
}
else if(virtualworld == 3)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,1199.247680,-918.144714,43.123298);
}
else if(virtualworld == 4)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,2105.485839,-1806.472534,13.554697);
}
else if(virtualworld == 5)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,203.514007,-202.257797,1.578099);
}
else if(virtualworld == 12)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,2310.018310,-1643.466918,14.826993);
}
else if(virtualworld == 21)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,364.442413,-2051.377685,8.015600);
}
else if(virtualworld == 13)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,1836.406372,-1682.440307,13.349300);
}
else if(virtualworld == 22)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,816.050598,-1387.092041,13.609197);
}
else if(virtualworld == 23)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,1498.401855,-1581.887329,13.549798);
}
else if(virtualworld == 24)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,1015.725585,-1508.778442,13.535697);
}
else if(virtualworld == 25)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,1095.607177,-1428.652709,22.771999);
}
else if(virtualworld == 15)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,1940.486694,-2116.039062,13.695300);
}
else if(virtualworld == 19)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,1087.593750,-923.270019,43.390598);
}
else if(virtualworld == 20)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,953.915283,-1335.991577,13.538900);
}
else if(virtualworld == 26)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,2244.342285,-1665.554199,15.476593);
}
else if(virtualworld == 27)
   {
SetPlayerInterior(playerid,0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,1456.467041,-1137.610351,23.948299);
}
else
{
   SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]);
}
SetPlayerVirtualWorld(playerid, 0);
}
}
if(GetPlayerVehicleID(playerid) >= 71 && GetPlayerVehicleID(playerid) <= 77)
{
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
}
else if (PlayerToPoint(3.0, playerid,387.7978,173.8582,1008.3828))
{
   SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2162.2554,-2385.9541,30.6250);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(6.0, playerid,-1404.5299,-259.0602,1043.6563))
{
   SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438);
}
else if (PlayerToPoint(8.0, playerid,-1443.0554,-581.1879,1055.0472))
{
   SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344);
}
else if (PlayerToPoint(8.0, playerid,-1464.7732,1557.5533,1052.5313))
{
   SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2080.3079,-406.0309,38.7344);
}
else if(NoFuel[playerid] == 1)
{
   TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
NoFuel[playerid] = 0;
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Poslednja Izmena: Jul 15, 2011, 14:02:02 POSLE PODNE od Dane

popravi koordinate izlaza iz kuca
//


najjednostavnije uzmi koordinate izlaza iz kuce i nadji ih u modu...

mislin.. nemozemo ti mi objasnit, nema tu nekog vleikog znanja promjenit koordinate, sama logika

Citat: [MRP] Bedi poslato Jul 15, 2011, 14:26:13 POSLE PODNE
najjednostavnije uzmi koordinate izlaza iz kuce i nadji ih u modu...

mislin.. nemozemo ti mi objasnit, nema tu nekog vleikog znanja promjenit koordinate, sama logika

Jbt nisam to nikad radio,a i opet ne kontam i nezz!! :'( :)

dragan12

Citat: Dane poslato Jul 15, 2011, 14:33:08 POSLE PODNE
Citat: [MRP] Bedi poslato Jul 15, 2011, 14:26:13 POSLE PODNE
najjednostavnije uzmi koordinate izlaza iz kuce i nadji ih u modu...

mislin.. nemozemo ti mi objasnit, nema tu nekog vleikog znanja promjenit koordinate, sama logika

Jbt nisam to nikad radio,a i opet ne kontam i nezz!! :'( :)
Udes u property.cfg i tamo ces videti neke strasne brojeve e tu su ti kordinate i tu proveri i namesti

Hah ko će se snać u onolikome čudo brojeva ??? ???



dragan12

Citat: Dane poslato Jul 15, 2011, 19:52:13 POSLE PODNE
Ne kontam čovječe ???
Pa na tom tutorijalu ti pise sta ti znaci sta.
Znaci ti treba da menjas ove kordinate
xUlaza,yUlaza,zUlaza
tacnije prve 3 kordinate su ti kordinate kada taj igrac izasao iz kuce/kada on ulazi u kucu