Don.Capone
Membru-
Posts
582 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
News
Documentation
Everything posted by Don.Capone
-
asta nu i fs ) 1/100
-
uneori intra pe mess si vorbim
-
cu ce nume ? :D
-
l-am vazut acum mult timp pe viata romaneasca(scuze de reclama) deci nush daca este facut de tine 3/5
-
ce rezolutie folosesti de se vede asa ? sau folosesti enb series ?
-
foloseste scripting machine prima versiune(vezi ca am postato eu la mape cauta acolo) pentru ca vad multe in neregula
-
n-are rost sa dau nota pentru ca arata excelent si cred ca sti si tu ce nota meriti.!
-
http://www.sa-mp.ro/forum/index.php/topic,21593.0.html
-
dute la un shop si vezi daca este de cumparat gps/harta si vezi dupa sau vezi ca poate ai un td sau un fs care iti ascunde harta
-
trb sa il pui tu
-
3 Probleme [ Ajutor - Masini , Porti , HQ ]
Don.Capone replied to Mr.Kiss's question in Arhivă probleme
arata comanda -
S-au incurcat Id-urile la masinile pers.!
Don.Capone replied to Chev_CheLioSu's question in Arhivă probleme
ti s-au incurcat id-urile la masini dute in gm la public IsAnOwnableCar(vehicleid) si vezi ca trebuie sa ai ceva de genul: Pawno Code: [select] public IsAnOwnableCar(vehicleid) { if(vehicleid >= 242 && vehicleid <= 403) { return 1; } return 0; } dar in loc de 242 si 403 tu ai alte numere. acele numere sunt 242=id primei masini personale si 403=numarul ultimei masini personale. tu intra pe server vezi sa nu fi in nicio factiune si scrie /gotocar sau /getcar 242 si vezi daca este masina personala incearca dupa aceea /getcar sau /gotocar 403 si vezi ce masina este 403 si incearca dupa aceea 402 sau 404. tu cand incerci 402 si vezi ca este ultima masina personala te duci in gm la IsAnOwnableCar(vehicleid) si in loc de 403 bagi 402 dar ai grija eu ti-am explicat dupa id-urile mele nu dupa ce ai tu. sper ca ai inteles. -
nu merge asa. incerca asa:[pawn]public PayDay() { new string[128]; new account,interest; new rent = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pLevel] > 0) { if(MoneyMessage==1) { SendClientMessage(i, COLOR_LIGHTRED, "Usted fallo en pagar su deuda, estara uno segundos en la Carcel."); GameTextForPlayer(i, "~r~Atrapado!", 2000, 1); SetPlayerInterior(i, 10); PlayerInfo[pInt] = 10; SetPlayerPos(i, 215.6566,109.6963,999.0156); PlayerInfo[pJailed] = 1; SafeResetPlayerWeapons(i); SafeResetPlayerMoney(i); WantedPoints = 0; PlayerInfo[pJailTime] = 240; format(string, sizeof(string), "Usted es encarcelado por %d segundos. Fianza: Deuda con el Estado", PlayerInfo[pJailTime]); SendClientMessage(i, COLOR_WHITE, string); } new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); account = PlayerInfo[pAccount]; new key = PlayerInfo[pPhousekey]; if(key != 255) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerMoney(i)) { PlayerInfo[pPhousekey] = 255; SendClientMessage(i, COLOR_WHITE, "Usted ha sido denunciado."); rent = 0; } HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent; } new tmpintrate; if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = intrate+4; } else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel] } else { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = 3; } else { tmpintrate = 1; } } if(PlayerInfo[pPayDay] >= 5) { Tax += TaxValue;//Should work for every player online PlayerInfo[pAccount] -= TaxValue; new checks = PlayerInfo[pPayCheck] / 5; if(PlayerInfo[pDonateRank] > 0) { new bonus = PlayerInfo[pPayCheck] / 10; checks += bonus; } new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]); //ConsumingMoney = 1; //SafeGivePlayerMoney(i, checks); account += checks; if(PlayerInfo[pAccount] > 0) { PlayerInfo[pAccount] -= ebill; SBizzInfo[4][sbTill] += ebill; } else { ebill = 0; } interest = (PlayerInfo[pAccount]/1000)*(tmpintrate); PlayerInfo[pExp]++; PlayerPlayMusic(i); PlayerInfo[pAccount] = account+interest; SendClientMessage(i, COLOR_GREEN, "|___ Interogare Sold ___|"); format(string, sizeof(string), " Plata: $%d Taxa: -$%d", checks, TaxValue); SendClientMessage(i, COLOR_WHITE, string); if(PlayerInfo[pPhousekey] != 255 || PlayerInfo[pPbiskey] != 255) { format(string, sizeof(string), " Factura Electrica: -$%d", ebill); SendClientMessage(i, COLOR_GRAD1, string); } format(string, sizeof(string), " Balance: $%d", account - checks); SendClientMessage(i, COLOR_WHITE, string); format(string, sizeof(string), " Taxa de interese: 0.%d procente",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); format(string, sizeof(string), " Interese Castigate $%d", interest); SendClientMessage(i, COLOR_GRAD3, string); SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|"); format(string, sizeof(string), " Noul Balance: $%d", PlayerInfo[pAccount]); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), " Chirie: -$%d", rent); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), "~g~Banca~n~~w~Ora de Plata"); GameTextForPlayer(i, string, 5000, 1); rent = 0; PlayerInfo[pPayDay] = 0; PlayerInfo[pPayCheck] = 0; PlayerInfo[pConnectTime] += 1; timesrobbed=0; if(FermierVar == 0) { FermierPickup[0] = 0; } if(DrugFermierVar == 0) { DrugFermierPickup[0] = 0; } if(SmugglerWork == 0) { PayDaySecure = 0; } if(PlayerInfo[pDonateRank] > 0) { PlayerInfo[pPayDayHad] += 1; if(PlayerInfo[pPayDayHad] >= 5) { PlayerInfo[pExp]++; PlayerInfo[pPayDayHad] = 0; } } } else { SendClientMessage(i, COLOR_WHITE, "* Nu ai jucat destul pentru a obtine un PayDay."); } } } } SaveAccounts(); Checkprop(); return 1; } [/pawn] ti-am pus tot public PayDay()
-
ti s-au incurcat id-urile la masini dute in gm la public IsAnOwnableCar(vehicleid) si vezi ca trebuie sa ai ceva de genul:[pawn]public IsAnOwnableCar(vehicleid) { if(vehicleid >= 242 && vehicleid <= 403) { return 1; } return 0; } [/pawn] dar in loc de 242 si 403 tu ai alte numere. acele numere sunt 242=id primei masini personale si 403=numarul ultimei masini personale. tu intra pe server vezi sa nu fi in nicio factiune si scrie /gotocar sau /getcar 242 si vezi daca este masina personala incearca dupa aceea /getcar sau /gotocar 403 si vezi ce masina este 403 si incearca dupa aceea 402 sau 404. tu cand incerci 402 si vezi ca este ultima masina personala te duci in gm la IsAnOwnableCar(vehicleid) si in loc de 403 bagi 402 dar ai grija eu ti-am explicat dupa id-urile mele nu dupa ce ai tu. sper ca ai inteles.
-
vezi asa : [pawn] if(strcmp(x_nr,"vinde",true) == 0) { if(IsAtDealership(playerid)) { if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { GetPlayerName(playerid, sendername, sizeof(sendername)); new ownvehkey; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { ownvehkey = PlayerInfo[playerid][pPcarkey]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { ownvehkey = PlayerInfo[playerid][pPcarkey2]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { ownvehkey = PlayerInfo[playerid][pPcarkey3]; } else { return 1; } if(strcmp(sendername, CarInfo[ownvehkey][cOwner], true) == 0) { new carsellprice = CarInfo[ownvehkey][cValue] / 4 * 3; new Float:x,Float:y,Float:z; new Float:a; CarInfo[ownvehkey][cOwned] = 0; strmid(CarInfo[ownvehkey][cOwner], "Dealership", 0, strlen("Dealership"), 999); SafeGivePlayerMoney(playerid,carsellprice); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "~w~Ai vandut masina pentru: ~n~~g~$%d", carsellprice); GameTextForPlayer(playerid, string, 10000, 3); GetVehiclePos(ownvehkey, x, y, z); GetVehicleZAngle(ownvehkey, a); CarInfo[ownvehkey][cLocationx] = x; CarInfo[ownvehkey][cLocationy] = y; CarInfo[ownvehkey][cLocationz] = z; CarInfo[ownvehkey][cAngle] = a; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { PlayerInfo[playerid][pPcarkey] = 999; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { PlayerInfo[playerid][pPcarkey2] = 999; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { PlayerInfo[playerid][pPcarkey3] = 999; } RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); if(PlayerInfo[playerid][pLocal] == ownvehkey) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]); PlayerInfo[playerid][pInt] = 0; } OnPropUpdate(); OnPlayerUpdate(playerid); DestroyVehicle(ownvehkey); CreateVehicle(CarInfo[ownvehkey][cModel],CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]+1.0,CarInfo[ownvehkey][cAngle],CarInfo[ownvehkey][cColorOne],CarInfo[ownvehkey][cColorTwo],60000); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Trebuie sa fii in masina ta ca sa o vinzi! "); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Nu esti la showroom"); return 1; } }[/pawn]
-
incearca [pawn]SetTimer("SyncUp", 60000, 1);[/pawn]
-
sau asa [pawn] if(strcmp(cmd, "/healall", true) == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 3) { format(string, sizeof(string), "Adminul %s a dat viata la toata lumea.", sendername); SendClientMessageToAll(0xFF7171FF, string); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { SetPlayerHealth(i, 100); } } } else { SendClientMessage(playerid, COLOR_RED, "Nu ai permisiunea de a folosi aceasta comanda!"); } } else { SendClientMessage(playerid, COLOR_RED, "Trebuie sa fi logat pentru a folosi aceasta comanda!"); } return 1; } [/pawn]
-
Cum pot face cand ma sui in masina
Don.Capone replied to tantan_andrey's question in Arhivă probleme
vrei sa faci ca pe blackpedia :| trebuie sa mai fie ceva nu doar atat si scz de reclama oricum este inchis ca n-au bani de host :) -
nu conteaza ca faci tu sau ca editezi(dar sa nu fie 1% editat de tine) conteaza sa iti dai silinta tot mai mult si sa inveti putin cate putin din ceea ce iti place sa faci. bravo 4/5
-
vezi prin fs-uri sa nu fie un fs care are textdraw sau cauta in scriptfiles pe acolo poate ai un textdraw cu ravens
-
sper ca esti consient ca esti un prost si vei lua warn :|
-
copile ai maxim 11 ani si faci fite acuma si te dai in basini. hai mars ca nu am vazut de la tine nimic. fa tu ceva si comenteaza atuncea. nu ai tu dreptul sa il faci bou si slab. te-ai uitat la tine macar ? vai mama ta si cum a spus starxd mai si faci ca retardul 3xpost pentru ca nu te duce capu sa citesti si tu regulamentul.