[Pomoc] Ulaz u int sa F

Započeo AlpinaWorld, Novembar 13, 2012, 19:34:36 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GF
Detaljan opis problema: Pa nezma kako da stavim da se ulaza u prostoriu sa stiskanje na F pomoc
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
www.Game-State.eu" style="border-style: none;


Citat: Blaeks poslato Novembar 13, 2012, 20:14:43 POSLE PODNE
Daj komandu /enter
if(strcmp(cmd, "/enter", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
//printf("Found House :%d",i);
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
{
SetPlayerInterior(playerid,HouseInfo[i][hInt]);
SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~w~Dobrodojdovte doma", 5000, 1);
PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
PlayerInfo[playerid][pLocal] = i;
}
else
{
GameTextForPlayer(playerid, "~r~Zakluceno", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
//printf("Found House :%d",i);
if(!IsACop(playerid) && i == 3)
{
    SendClientMessage(playerid, COLOR_GREY, "   Samo policija !");
    return 1;
}
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(BizzInfo[i][bLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Zatvoreno", 5000, 1);
return 1;
}
if(BizzInfo[i][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
GivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
format(string, sizeof(string), "~r~-$%d~n~~w~Napisete /exit~n~da izlezete", BizzInfo[i][bEntranceCost]);
BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
BizzInfo[i][bProducts]--;
OnPropUpdate();
GameTextForPlayer(playerid, string, 5000, 3);
}
SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
PlayerInfo[playerid][pLocal] = i+99;
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s Plativte $%d da vlezete vo biz %d", dood, BizzInfo[i][bEntranceCost], i);
printf("%s", string);
PayLog(string);
//PlayerInfo[playerid][pLocal] = i;
}
else
{
GameTextForPlayer(playerid, "~r~Nemate dovolno pari", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if (PlayerToPoint(3, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[i][sbEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(SBizzInfo[i][sbLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Zatvoreno", 5000, 1);
return 1;
}
if(SBizzInfo[i][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
if(i == 10)
{
    PaintballPlayers ++;
    PlayerPaintballing[playerid] = 1;
    new rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
TogglePlayerControllable(playerid, 0);
}
else if(i == 11)
{
    PlayerKarting[playerid] = 1;
    SendClientMessage(playerid, TEAM_GROVE_COLOR, "You can now parcipitate in a Karting Race, grab a Kart.");
}
else
{
    return 1;
}
GivePlayerMoney(playerid,-SBizzInfo[i][sbEntranceCost]);
gSpentCash[playerid] = GetPlayerMoney(playerid);
SBizzInfo[i][sbProducts]--;
SBizzInfo[i][sbTill] += SBizzInfo[i][sbEntranceCost];
ExtortionSBiz(i, SBizzInfo[i][sbEntranceCost]);
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s Plativte $%d da vlezete vo biz %d", dood, SBizzInfo[i][sbEntranceCost], i);
printf("%s", string);
PayLog(string);
OnPropUpdate();
}
}
else
{
GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);
}
}
}
if (PlayerToPoint(2.0, playerid,1482.5220,-1771.1979,18.7958))
{
    SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,387.7978,173.8582,1008.3828);
GameTextForPlayer(playerid, "~w~Opshtina.", 5000, 1);
PlayerInfo[playerid][pInt] = 3;
}
else if (PlayerToPoint(2.0, playerid,2340.2397,-1215.9818,22.5000))
{
    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,1205.0947,-10.1685,1000.9219);
PlayerInfo[playerid][pInt] = 2;
PlayerInfo[playerid][pLocal] = 242;
}
}
///---amunation
if(PlayerToPoint(2, playerid,1368.6711,-1279.9377,13.5469))
    {//Ammunation
        GameTextForPlayer(playerid, "~r~Ammunation", 5000, 1);
        SendClientMessage(playerid, COLOR_GREEN, " Odete na na Markerot i pisete /gun");
        SetPlayerCheckpoint(playerid, 307.9722,-141.4586,999.6016, 2);
            SetPlayerInterior(playerid, 7);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid,314.820983,-141.431991,999.601562);
            }
else if (PlayerToPoint(2.0, playerid,1555.1678,-1675.7308,16.1953))
{
                SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,246.3974,64.0116,1003.6406);
PlayerInfo[playerid][pInt] = 6;
PlayerInfo[playerid][pLocal] = 242;
            }
if (PlayerToPoint(2.0, playerid,1199.1975,-919.1031,43.1164))
{
    SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,363.4129,-74.5786,1001.5078);
GameTextForPlayer(playerid, "~w~Burger", 5000, 1);
PlayerInfo[playerid][pInt] = 10;
}
if (PlayerToPoint(2.0, playerid,1315.3368,-898.3782,39.5781))
{
    SetPlayerInterior(playerid,18);
SetPlayerPos(playerid,-30.9467,-89.6096,1003.5469);
GameTextForPlayer(playerid, "~w~ 24/7", 5000, 1);
PlayerInfo[playerid][pInt] = 18;
PlayerInfo[playerid][pLocal] = 241;
}
if(PlayerToPoint(2.0, playerid,1463.6949,-1010.3029,26.8438))
{//Ulaz u banku
GameTextForPlayer(playerid, "~w~Banka.", 3000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1457.6887,-1012.8301,14.2328);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerToPoint(2.0, playerid,1457.6887,-1012.8301,14.2328))
{//izlaz iz banke
GameTextForPlayer(playerid, "~w~Los Santos.", 5000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1463.6949,-1010.3029,26.8438);
PlayerInfo[playerid][pInt] = 0;
}
if (PlayerToPoint(2.0, playerid,1836.4064,-1682.4403,13.3493))
{
    GameTextForPlayer(playerid, "~w~Alhambra", 5000, 1);
SetPlayerInterior(playerid, 17);
SetPlayerPos(playerid,493.3891,-22.7212,1000.6797);
PlayerInfo[playerid][pInt] = 17;
}
else if (PlayerToPoint(2.0,playerid,1391.9349,-1623.3087,13.5469))
{
    SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,288.5901,169.9976,1007.1794);
PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 261;
GameTextForPlayer(playerid, "~w~FBI.", 5000, 1);
}
else if (PlayerToPoint(2.0, playerid,1038.4478,-1082.7072,23.8281))
{
    SetPlayerInterior(playerid,18);
SetPlayerPos(playerid,-30.9467,-89.6096,1003.5469);
PlayerInfo[playerid][pInt] = 18;
PlayerInfo[playerid][pLocal] = 246;
GameTextForPlayer(playerid, "Dobrodojdovte vo Prodavnica 24/7", 5000, 1);//TRGOVSKI 24
}
else if (PlayerToPoint(2.0,playerid,1087.6448,-923.4148,43.3906))
{
    SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,-2637.6899,1404.2400,906.4609);
PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 259;
GameTextForPlayer(playerid, "Dobrodojdovte vo diskoteka AlpinaWorld", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,999.3044,-919.7736,42.1797))
{
    SetPlayerInterior(playerid,4);
SetPlayerPos(playerid,-27.9120,-29.9176,1003.5573);
PlayerInfo[playerid][pInt] = 4;
GameTextForPlayer(playerid, "Dobrodojdovte vo 24/7", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,2310.0559,-1643.6768,14.8270))
{
    SetPlayerInterior(playerid,11);
SetPlayerPos(playerid,502.3016,-69.9530,998.7578);
PlayerInfo[playerid][pInt] = 11;
GameTextForPlayer(playerid, "Bikers Bar", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,2166.8381,-1672.6600,15.0755))
    {
 
    SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,318.5650,1118.2100,1083.8828);
PlayerInfo[playerid][pInt] = 5;
GameTextForPlayer(playerid, "Dobrodojdovte vo Diler kukja", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,926.4476,-1352.5208,13.3764))
{
    SetPlayerInterior(playerid,9);
SetPlayerPos(playerid,365.6703,-10.7100,1001.8516);
PlayerInfo[playerid][pInt] = 9;
GameTextForPlayer(playerid, "Dobrodojdovte vo Burger", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,2228.7551,-1723.1373,13.5533))
{
    SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,771.8644,-3.1980,1000.7286);
PlayerInfo[playerid][pInt] = 5;
GameTextForPlayer(playerid, "Dobrodojdovte vo Box Arena", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,2244.6233,-1664.0995,15.4766))
{
    SetPlayerInterior(playerid,15);
SetPlayerPos(playerid,207.9094,-109.4825,1005.1328);
PlayerInfo[playerid][pInt] = 15;
GameTextForPlayer(playerid, "Dobrodojdovte vo Binco", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,1458.7712,-1139.8041,24.0712))
{
    SetPlayerInterior(playerid,18);
SetPlayerPos(playerid,161.4128,-94.4075,1001.8047);
PlayerInfo[playerid][pInt] = 18;
GameTextForPlayer(playerid, "Dobrodojdovte vo Binco.", 5000, 1);
}
else if (PlayerToPoint(2.0, playerid,2695.6235,-1704.6960,11.8438))
{
    GameTextForPlayer(playerid, "~w~Welcome to the 8ball Track", 5000, 1);
    SetPlayerInterior(playerid,7);
SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
}
else if (PlayerToPoint(8.0, playerid,-2111.5686,-443.9720,38.7344))
{
    GameTextForPlayer(playerid, "~w~Welcome to the Dirt Track.", 5000, 1);
    SetPlayerInterior(playerid,4);
SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
}
else if (PlayerToPoint(8.0, playerid,-2080.3079,-406.0309,38.7344))
{
    GameTextForPlayer(playerid, "~w~Welcome to the Stunting Track.", 5000, 1);
    SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
}
}
return 1;
}
www.Game-State.eu" style="border-style: none;

if ((newkeys & KEY_ENTER))
{
    if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
//printf("Found House :%d",i);
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
{
SetPlayerInterior(playerid,HouseInfo[i][hInt]);
SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~w~Dobrodojdovte doma", 5000, 1);
PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
PlayerInfo[playerid][pLocal] = i;
}
else
{
GameTextForPlayer(playerid, "~r~Zakluceno", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
//printf("Found House :%d",i);
if(!IsACop(playerid) && i == 3)
{
    SendClientMessage(playerid, COLOR_GREY, "   Samo policija !");
    return 1;
}
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(BizzInfo[i][bLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Zatvoreno", 5000, 1);
return 1;
}
if(BizzInfo[i][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
GivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
format(string, sizeof(string), "~r~-$%d~n~~w~Napisete /exit~n~da izlezete", BizzInfo[i][bEntranceCost]);
BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
BizzInfo[i][bProducts]--;
OnPropUpdate();
GameTextForPlayer(playerid, string, 5000, 3);
}
SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
PlayerInfo[playerid][pLocal] = i+99;
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s Plativte $%d da vlezete vo biz %d", dood, BizzInfo[i][bEntranceCost], i);
printf("%s", string);
PayLog(string);
//PlayerInfo[playerid][pLocal] = i;
}
else
{
GameTextForPlayer(playerid, "~r~Nemate dovolno pari", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if (PlayerToPoint(3, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[i][sbEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(SBizzInfo[i][sbLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Zatvoreno", 5000, 1);
return 1;
}
if(SBizzInfo[i][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
if(i == 10)
{
    PaintballPlayers ++;
    PlayerPaintballing[playerid] = 1;
    new rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
TogglePlayerControllable(playerid, 0);
}
else if(i == 11)
{
    PlayerKarting[playerid] = 1;
    SendClientMessage(playerid, TEAM_GROVE_COLOR, "You can now parcipitate in a Karting Race, grab a Kart.");
}
else
{
    return 1;
}
GivePlayerMoney(playerid,-SBizzInfo[i][sbEntranceCost]);
gSpentCash[playerid] = GetPlayerMoney(playerid);
SBizzInfo[i][sbProducts]--;
SBizzInfo[i][sbTill] += SBizzInfo[i][sbEntranceCost];
ExtortionSBiz(i, SBizzInfo[i][sbEntranceCost]);
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s Plativte $%d da vlezete vo biz %d", dood, SBizzInfo[i][sbEntranceCost], i);
printf("%s", string);
PayLog(string);
OnPropUpdate();
}
}
else
{
GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);
}
}
}
if (PlayerToPoint(2.0, playerid,1482.5220,-1771.1979,18.7958))
{
    SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,387.7978,173.8582,1008.3828);
GameTextForPlayer(playerid, "~w~Opshtina.", 5000, 1);
PlayerInfo[playerid][pInt] = 3;
}
else if (PlayerToPoint(2.0, playerid,2340.2397,-1215.9818,22.5000))
{
    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,1205.0947,-10.1685,1000.9219);
PlayerInfo[playerid][pInt] = 2;
PlayerInfo[playerid][pLocal] = 242;
}
}
///---amunation
if(PlayerToPoint(2, playerid,1368.6711,-1279.9377,13.5469))
    {//Ammunation
        GameTextForPlayer(playerid, "~r~Ammunation", 5000, 1);
        SendClientMessage(playerid, COLOR_GREEN, " Odete na na Markerot i pisete /gun");
        SetPlayerCheckpoint(playerid, 307.9722,-141.4586,999.6016, 2);
            SetPlayerInterior(playerid, 7);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid,314.820983,-141.431991,999.601562);
            }
else if (PlayerToPoint(2.0, playerid,1555.1678,-1675.7308,16.1953))
{
                SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,246.3974,64.0116,1003.6406);
PlayerInfo[playerid][pInt] = 6;
PlayerInfo[playerid][pLocal] = 242;
            }
if (PlayerToPoint(2.0, playerid,1199.1975,-919.1031,43.1164))
{
    SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,363.4129,-74.5786,1001.5078);
GameTextForPlayer(playerid, "~w~Burger", 5000, 1);
PlayerInfo[playerid][pInt] = 10;
}
if (PlayerToPoint(2.0, playerid,1315.3368,-898.3782,39.5781))
{
    SetPlayerInterior(playerid,18);
SetPlayerPos(playerid,-30.9467,-89.6096,1003.5469);
GameTextForPlayer(playerid, "~w~ 24/7", 5000, 1);
PlayerInfo[playerid][pInt] = 18;
PlayerInfo[playerid][pLocal] = 241;
}
if(PlayerToPoint(2.0, playerid,1463.6949,-1010.3029,26.8438))
{//Ulaz u banku
GameTextForPlayer(playerid, "~w~Banka.", 3000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1457.6887,-1012.8301,14.2328);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerToPoint(2.0, playerid,1457.6887,-1012.8301,14.2328))
{//izlaz iz banke
GameTextForPlayer(playerid, "~w~Los Santos.", 5000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1463.6949,-1010.3029,26.8438);
PlayerInfo[playerid][pInt] = 0;
}
if (PlayerToPoint(2.0, playerid,1836.4064,-1682.4403,13.3493))
{
    GameTextForPlayer(playerid, "~w~Alhambra", 5000, 1);
SetPlayerInterior(playerid, 17);
SetPlayerPos(playerid,493.3891,-22.7212,1000.6797);
PlayerInfo[playerid][pInt] = 17;
}
else if (PlayerToPoint(2.0,playerid,1391.9349,-1623.3087,13.5469))
{
    SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,288.5901,169.9976,1007.1794);
PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 261;
GameTextForPlayer(playerid, "~w~FBI.", 5000, 1);
}
else if (PlayerToPoint(2.0, playerid,1038.4478,-1082.7072,23.8281))
{
    SetPlayerInterior(playerid,18);
SetPlayerPos(playerid,-30.9467,-89.6096,1003.5469);
PlayerInfo[playerid][pInt] = 18;
PlayerInfo[playerid][pLocal] = 246;
GameTextForPlayer(playerid, "Dobrodojdovte vo Prodavnica 24/7", 5000, 1);//TRGOVSKI 24
}
else if (PlayerToPoint(2.0,playerid,1087.6448,-923.4148,43.3906))
{
    SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,-2637.6899,1404.2400,906.4609);
PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 259;
GameTextForPlayer(playerid, "Dobrodojdovte vo diskoteka AlpinaWorld", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,999.3044,-919.7736,42.1797))
{
    SetPlayerInterior(playerid,4);
SetPlayerPos(playerid,-27.9120,-29.9176,1003.5573);
PlayerInfo[playerid][pInt] = 4;
GameTextForPlayer(playerid, "Dobrodojdovte vo 24/7", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,2310.0559,-1643.6768,14.8270))
{
    SetPlayerInterior(playerid,11);
SetPlayerPos(playerid,502.3016,-69.9530,998.7578);
PlayerInfo[playerid][pInt] = 11;
GameTextForPlayer(playerid, "Bikers Bar", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,2166.8381,-1672.6600,15.0755))
    {
 
    SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,318.5650,1118.2100,1083.8828);
PlayerInfo[playerid][pInt] = 5;
GameTextForPlayer(playerid, "Dobrodojdovte vo Diler kukja", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,926.4476,-1352.5208,13.3764))
{
    SetPlayerInterior(playerid,9);
SetPlayerPos(playerid,365.6703,-10.7100,1001.8516);
PlayerInfo[playerid][pInt] = 9;
GameTextForPlayer(playerid, "Dobrodojdovte vo Burger", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,2228.7551,-1723.1373,13.5533))
{
    SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,771.8644,-3.1980,1000.7286);
PlayerInfo[playerid][pInt] = 5;
GameTextForPlayer(playerid, "Dobrodojdovte vo Box Arena", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,2244.6233,-1664.0995,15.4766))
{
    SetPlayerInterior(playerid,15);
SetPlayerPos(playerid,207.9094,-109.4825,1005.1328);
PlayerInfo[playerid][pInt] = 15;
GameTextForPlayer(playerid, "Dobrodojdovte vo Binco", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,1458.7712,-1139.8041,24.0712))
{
    SetPlayerInterior(playerid,18);
SetPlayerPos(playerid,161.4128,-94.4075,1001.8047);
PlayerInfo[playerid][pInt] = 18;
GameTextForPlayer(playerid, "Dobrodojdovte vo Binco.", 5000, 1);
}
else if (PlayerToPoint(2.0, playerid,2695.6235,-1704.6960,11.8438))
{
    GameTextForPlayer(playerid, "~w~Welcome to the 8ball Track", 5000, 1);
    SetPlayerInterior(playerid,7);
SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
}
else if (PlayerToPoint(8.0, playerid,-2111.5686,-443.9720,38.7344))
{
    GameTextForPlayer(playerid, "~w~Welcome to the Dirt Track.", 5000, 1);
    SetPlayerInterior(playerid,4);
SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
}
else if (PlayerToPoint(8.0, playerid,-2080.3079,-406.0309,38.7344))
{
    GameTextForPlayer(playerid, "~w~Welcome to the Stunting Track.", 5000, 1);
    SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
}
}
return 1;
}
stavi ovo pod OnPlayerKeyStateChange

jasam imo edni drug GM sto se ulazalo na F i ne Key_Enter i u gm nemam public OnPlayerKeyStateChange
www.Game-State.eu" style="border-style: none;


Ovo je sve sto ti treba da stavis da ulazis sa slovom F ili ENTER

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_SECONDARY_ATTACK)
    {
        if (GetPlayerState(playerid) == 1) CheckForWalkingTeleport(playerid);
    }
}
Poslednja Izmena: Novembar 14, 2012, 00:45:39 PRE PODNE od Atomâ„¢|LG
Citat: Nikola TeslaNe žalim što su drugi pokrali moje ideje. Žalim što nemaju svoje.