Jump to content
  • 0

Problema business


Taykiro

Question

1.Am folosit DisableInteriorEnterExits(); si dupa ce am bagato in GM nu mai merge sa dai la bizuri /enter :|

2.Cum scot prostia aia sa iti alegi caracteru (http://postimg.org/image/3u26tbg9f/) mereu cand intru pe server sau cand mor prima data apare :|

3.La bizuri apare asa http://postimg.org/image/iyyxwpeu1/ cum pot face sa apara un fel de Create3DTextLabel adica sa se vada fara sa mergi pe pickup

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

1.Sterge DisbaleInteriorEnterExits(); daca nu stii ce sistem de afaceri ai.

nu vreau sa apara iar sagetile alea , dar vreau sa pot intra si in biz ... am inceput gm lu fear deci ce sistem e acolo ala il am

Am observat ca si daca am blocat //disableinteriorenterexit tot nu merge sa intru si nici in case nici in primarie

Link to comment
Share on other sites

Am pus si /exit ca nu merge.

Nu stiu sa fac bizurile cu create34text nu exista un tutorial sau ceva de genu?

[pawn]if(strcmp(cmd, "/enter", true) == 0)

{

    if(IsPlayerConnected(playerid))

{

for(new i = 0; i < sizeof(HouseInfo); i++)

{

if (PlayerToPoint(3, playerid,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]))

{

//printf("Found House :%d",i);

if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[hLock] == 0)

{

SetPlayerInterior(playerid,HouseInfo[hInt]);

SetPlayerPos(playerid,HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz]);

GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);

PlayerInfo[playerid][pInt] = HouseInfo[hInt];

PlayerInfo[playerid][pLocal] = i;

}

else

{

GameTextForPlayer(playerid, "~r~Locked", 5000, 1);

}

}

}

for(new i = 0; i < sizeof(BizzInfo); i++)

{

if (PlayerToPoint(3, playerid,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]))

{

//printf("Found House :%d",i);

if(!IsACop(playerid) && i == 3)

{

    SendClientMessage(playerid, COLOR_GREY, "  Cops only !");

    return 1;

}

if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[bEntranceCost])

{

if(PlayerInfo[playerid][pPbiskey] != i)

{

if(BizzInfo[bLocked] == 1)

{

GameTextForPlayer(playerid, "~r~Closed", 5000, 1);

return 1;

}

if(BizzInfo[bProducts] == 0)

{

GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);

return 1;

}

GivePlayerMoney(playerid,-BizzInfo[bEntranceCost]);

format(string, sizeof(string), "~r~-$%d~n~~w~type /exit~n~to get out", BizzInfo[bEntranceCost]);

BizzInfo[bTill] += BizzInfo[bEntranceCost];

ExtortionBiz(i, BizzInfo[bEntranceCost]);

BizzInfo[bProducts]--;

OnPropUpdate();

GameTextForPlayer(playerid, string, 5000, 3);

}

SetPlayerInterior(playerid,BizzInfo[bInterior]);

SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]);

PlayerInfo[playerid][pInt] = BizzInfo[bInterior];

PlayerInfo[playerid][pLocal] = i+99;

new dood[MAX_PLAYER_NAME];

GetPlayerName(playerid, dood, sizeof(dood));

format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[bEntranceCost], i);

printf("%s", string);

PayLog(string);

//PlayerInfo[playerid][pLocal] = i;

}

else

{

GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);

}

}

}

for(new i = 0; i < sizeof(SBizzInfo); i++)

{

if (PlayerToPoint(3, playerid,SBizzInfo[sbEntranceX], SBizzInfo[sbEntranceY], SBizzInfo[sbEntranceZ]))

{

if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[sbEntranceCost])

{

if(PlayerInfo[playerid][pPbiskey] != i)

{

if(SBizzInfo[sbLocked] == 1)

{

GameTextForPlayer(playerid, "~r~Closed", 5000, 1);

return 1;

}

if(SBizzInfo[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[sbEntranceCost]);

gSpentCash[playerid] = GetPlayerMoney(playerid);

SBizzInfo[sbProducts]--;

SBizzInfo[sbTill] += SBizzInfo[sbEntranceCost];

ExtortionSBiz(i, SBizzInfo[sbEntranceCost]);

new dood[MAX_PLAYER_NAME];

GetPlayerName(playerid, dood, sizeof(dood));

format(string, sizeof(string), "%s payed $%d to enter sbiz %d", dood, SBizzInfo[sbEntranceCost], i);

printf("%s", string);

PayLog(string);

OnPropUpdate();

}

}

else

{

GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);

}

}

}

if (PlayerToPoint(3.0, playerid,1481.2463,-1770.7344,18.7958))

{

    SetPlayerInterior(playerid,3);

SetPlayerPos(playerid,387.7978,173.8582,1008.3828);

GameTextForPlayer(playerid, "~w~Welcome to the City Hall", 5000, 1);

PlayerInfo[playerid][pInt] = 3;

PlayerInfo[playerid][pLocal] = 241;

}

else if (PlayerToPoint(3.0, playerid,1073.0619,-344.5148,73.9922))

{

    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;

}

}

else if (PlayerToPoint(3.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;

}

if(strcmp(cmd, "/exit", true) == 0)

{

    if(IsPlayerConnected(playerid))

{

for(new i = 0; i <  sizeof(HouseInfo); i++)

{

//printf("House :%d",i);

if (PlayerToPoint(3, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz]))

{

SetPlayerInterior(playerid,0);

SetPlayerPos(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]);

PlayerInfo[playerid][pInt] = 0;

PlayerInfo[playerid][pLocal] = 255;

if(HouseInfo[hHel] == 1)

{

new Float:tempheal;

GetPlayerHealth(playerid,tempheal);

if(tempheal < 100.0)

{

SetPlayerHealth(playerid,100.0);

}

}

}

}

for(new i = 0; i <  sizeof(BizzInfo); i++)

{

//printf("Bizz :%d",i);

if (PlayerToPoint(3, playerid,BizzInfo[bExitX], BizzInfo[bExitY], BizzInfo[bExitZ]))

{

SetPlayerInterior(playerid,0);

PlayerInfo[playerid][pInt] = 0;

SetPlayerPos(playerid,BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ]);

PlayerInfo[playerid][pLocal] = 255;

}

}

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;

}[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.