Taykiro
-
Posts
62 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by Taykiro
-
-
Salut baieti am si eu o problema nu imi merg comenzile /enter si /exit , nu stiu de ce . Nu pot intra in bizuri, case primarie etc.
Ma puteti ajuta?
Acestea sunt comenzile http://pastebin.com/01bs0Xha
-
Salut baieti am si eu o problema nu imi merg comenzile /enter si /exit , nu stiu de ce . Nu pot intra in bizuri, case primarie etc.
Ma puteti ajuta?
Acestea sunt comenzile http://pastebin.com/01bs0Xha
-
Nu exista scriptul DisbaleInteriorEnterExits();
lasate
-
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]
-
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
-
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
-
Multumesc celor care m-au ajutat!
Am reusit sa fac ... si au mai fost cateva pe langa ce trebuiau rezolvate.
-
Inseamna ca iti lispeste o paranteza. Uite cum era la time public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
}
Am luat-o de la capat , am compilat fara ondialogresponse mia mers (bineinteles cu warning-uri(nu am intrat pe sv)) , dar dupa ce am pus si ondialogresponse imi da "dont send" la pawno .. de la ce poate fi?
-
Inlocuieste prima paranteza cu {
acuma imi da ca nu am o acolada
-
Am urmat acest tutorial(http://www.sa-mp.ro/forum/index.php?topic=5160.0) dar nu reusesc sa fac ultima etapa cu ondialogresponse
Am nevoie de ajutor nu stiu cum sa fac sa mearga.. eu l-am facut asa
[pawn]public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
}
if(dialogid == 12346 || dialogid == 12347)
{
if(response)
{
if(strlen(inputtext))
{
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
OnPlayerLogin(playerid,tmppass);
}
else
{
new loginstring[500];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"{FF0000}WRONG PASSWORD\n\n\n\n\n{FFFF00}NumeSV{FFFFFF} te roaga sa scri parola corecta:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"{FF0000}Log-in",loginstring,"Log-in","Exit");
}
}
}
if(dialogid == 12345)
{
if(response)
{
if(strlen(inputtext))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "That Username is already taken, please choose a different one.");
fclose(hFile);
return 1;
}
new passtring[128];
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
format(passtring,sizeof(passtring),"{FFFFFF}Your password is( {FF0000}%s {FFFFFF}).Please don't forget your password or you lost the account",tmppass);
SendClientMessage(playerid, COLOR_ROSUAPRINS, passtring);
OnPlayerRegister(playerid,tmppass);
}
else
{
new regstring[1000];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Bun venit, {1E90FF}%s\n{FFFFFF}Nu ai cont.\n\n\n\n\n\n{FFFF00}NumeSV te roaga sa te inregistrezi:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"{FF0000}Register",regstring,"Register","Exit");
}
}
}
return 1;[/pawn]
-
Voi cand ati bagat car ownership la carsonserver ati lasat nr de masini care apare acolo . Cautati in gm sau in fs "carsonserver si modificati cu ultimu id +1 adica daca ai pe sv 335 de masini la carsonserver puneti 336 dati /gotoca (id) pana va da pe un camp
-
Am rezolvat problema....
Am luat un fs car ownership sa vad daca merge imi merge /acreatecar ia id 337 dupa ultimu id 336 la restart se baga id 1 si id 337 e id de la masina care a avut id 336 inainte de restart si e de vanzare Nu stiti de la ce poate fi . Am 2 gm pe unu merge fara problema dar pe altu nu merge.
Acum am alta
cand intri in masina si dai /v buy iti zice ca ai deja 3 masini
-
cum pun o melodie la inceput?Am puso pe asta dar vreau sa pun alta cum o pot pune?
PlayAudioStreamForPlayer(playerid, "http://samp.dreamservers.ro/music/The%20Godfather%20Theme.mp3");
-
Si mie mi sa intamplat am reinstalat san andreas si apoi am bagat alt crack si s-a rezolvat ------SCUZATI NU M-AM UITAT DIN CE DATA E POSTUL
-
Macar de il faceai intrun dialog
asa e prea simplu oricine poate pun un SendClientMessage intr-o comanda
-
La OnPlayerSpawn pui asa
public OnPlayerSpawn(playerid) { //Eu am pus Primultd0 asa mai departe tu pui cum ai acolo TextDrawShowForPlayer(playerid, Primultd0); TextDrawShowForPlayer(playerid, Primultd1); TextDrawShowForPlayer(playerid, Primultd2); TextDrawShowForPlayer(playerid, Primultd3); TextDrawShowForPlayer(playerid, Primultd4); TextDrawShowForPlayer(playerid, Primultd5); TextDrawShowForPlayer(playerid, Primultd6); return 1; }
MS am reusit ,dar am pus in loc de Show Hide
-
Am rezolvat chestea cu text sa apara la toti acum ma puteti ajuta sa fac sa dispara textdraw dupa ce ma loghez
-
Sincer pentru asta nici nu ma chinuiam sa il incarc pe youtube
-
Ce vrei sa faci cu TD-ul asta?
Sa apara la o comanda/sa fie mereu pe ecran...?
Numa la inceput . Am reusit
[move]Multumesc la toti.[/move]
-
http://wiki.sa-mp.com/wiki/TextDrawShowForPlayer 8-l
Am facut la toate cu new Text:... dar nu merge trebuie si forward?
-
Nu merge , se compileaza bine dar cand intru pe sv e la fel :| Are ceva daca am modificat in loc de text1 si text2 text6 si text7?
-
Salut , nu ma prea stiu la textdraw si as vrea sa ma ajute cineva sa imi spuna cum sa bag astea . Leam gasit pe .com si imi plac
[pawn]MyTD = TextDrawCreate(1.000, 1.00,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
TextDrawUseBox(MyTD , 1);
TextDrawFont(MyTD , 1);
TextDrawLetterSize(MyTD ,0.3,1);
TextDrawSetShadow(MyTD ,1);
TextDrawSetOutline(MyTD ,1);
TextDrawBackgroundColor(MyTD ,0x00F600AA);
TextDrawBoxColor(MyTD ,0x000000cc);
TextDrawColor(MyTD ,0x00F600AA);
TextDrawTextSize(MyTD , 720.0, 200.0);
TextDrawSetProportional(MyTD, 1);
TextDrawAlignment(MyTD, 0);
//Other Text Draw
MyRD = TextDrawCreate(1.000, 300.00,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
TextDrawUseBox(MyRD , 1);
TextDrawFont(MyRD , 3);
TextDrawLetterSize(MyRD ,0.3,1);
TextDrawSetShadow(MyRD ,1);
TextDrawSetOutline(MyRD ,1);
TextDrawBackgroundColor(MyRD ,0x000000FF);
TextDrawBoxColor(MyRD ,0x000000cc);
TextDrawColor(MyRD ,0x000000FF);
TextDrawTextSize(MyRD , 720.0, 200.0);
TextDrawSetProportional(MyRD, 1);
TextDrawAlignment(MyRD, 0);
//Text Draw for Ad.
Welcome = TextDrawCreate(277.000000, 305.000000, "change me");
text1 = TextDrawCreate(300.000000, 320.000000, "change me");
text2 = TextDrawCreate(240.000000, 335.000000, " change me");
TextDrawAlignment(Welcome, 0);
TextDrawAlignment(text1, 0);
TextDrawAlignment(text2, 0);
TextDrawBackgroundColor(Welcome, 0x00ff0066);
TextDrawBackgroundColor(text1, 0xF6F600AA);
TextDrawBackgroundColor(text2, 0xF6F600AA);
TextDrawFont(Welcome, 3);
TextDrawLetterSize(Welcome, 0.599999, 1.600000);
TextDrawFont(text1, 3);
TextDrawLetterSize(text1, 0.599999, 1.600000);
TextDrawFont(text2, 3);
TextDrawLetterSize(text2, 0.599999, 1.600000);
TextDrawColor(Welcome, 0xAA3333AA);
TextDrawColor(text1, 0xAA3333AA);
TextDrawColor(text2, 0xAA3333AA);
TextDrawSetOutline(Welcome, 1);
TextDrawSetOutline(text1, 1);
TextDrawSetOutline(text2, 1);
TextDrawSetProportional(Welcome, 1);
TextDrawSetProportional(text1, 1);
TextDrawSetProportional(text2, 1);
TextDrawSetShadow(Welcome, 0);
TextDrawSetShadow(text1, 0);
TextDrawSetShadow(text2, 0); [/pawn]
-
Stergeti contu si o sa vezi ca nu mai poti intra cu alta parola. Ai stins serverul cand erai pe el si deaia
-
Am intrat pe blogu si are acolo o gramada de skinuri la masini (tu nici nu sti sa faci asa ceva) si vrei sa cred ca esti tu ?
Help
in Arhivă probleme
Posted
exact aia e problema ...
cum sa nu fie setate bine nici la case nici la nimic ..