Jump to content

Madu99

Membru
  • Posts

    93
  • Joined

  • Last visited

    Never

Everything posted by Madu99

  1. idem mia reusit , e perfect tutorialul Dar daca vreau ca atunci cand se executa o comanda , bani sa fie redirectionati catre biz?
  2. am detectat crash`ul este de la salvarea tuningului. Ce este gresit??? [pawn]public LoadComponents(vehicleid) { if(CarInfo[vehicleid][cOwned] == 1) { if(CarInfo[vehicleid][mod1] >= 1000 && CarInfo[vehicleid][mod1] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod1])) != CarInfo[vehicleid][mod1]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod1]); } } if(CarInfo[vehicleid][mod2] >= 1000 && CarInfo[vehicleid][mod2] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod2])) != CarInfo[vehicleid][mod2]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod2]); } } if(CarInfo[vehicleid][mod3] >= 1000 && CarInfo[vehicleid][mod3] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod3])) != CarInfo[vehicleid][mod3]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod3]); } } if(CarInfo[vehicleid][mod4] >= 1000 && CarInfo[vehicleid][mod4] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod4])) != CarInfo[vehicleid][mod4]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod4]); } } if(CarInfo[vehicleid][mod5] >= 1000 && CarInfo[vehicleid][mod5] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod5])) != CarInfo[vehicleid][mod5]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod5]); } } if(CarInfo[vehicleid][mod6] >= 1000 && CarInfo[vehicleid][mod6] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod6])) != CarInfo[vehicleid][mod6]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod6]); } } if(CarInfo[vehicleid][mod7] >= 1000 && CarInfo[vehicleid][mod7] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod7])) != CarInfo[vehicleid][mod7]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod7]); } } if(CarInfo[vehicleid][mod8] >= 1000 && CarInfo[vehicleid][mod8] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod8])) != CarInfo[vehicleid][mod8]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod8]); } } if(CarInfo[vehicleid][mod9] >= 1000 && CarInfo[vehicleid][mod9] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod9])) != CarInfo[vehicleid][mod9]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod9]); } } if(CarInfo[vehicleid][mod10] >= 1000 && CarInfo[vehicleid][mod10] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod10])) != CarInfo[vehicleid][mod10]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod10]); } } if(CarInfo[vehicleid][mod11] >= 1000 && CarInfo[vehicleid][mod11] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod11])) != CarInfo[vehicleid][mod11]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod11]); } } if(CarInfo[vehicleid][mod12] >= 1000 && CarInfo[vehicleid][mod12] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod12])) != CarInfo[vehicleid][mod12]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod12]); } } if(CarInfo[vehicleid][mod13] >= 1000 && CarInfo[vehicleid][mod13] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod13])) != CarInfo[vehicleid][mod13]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod13]); } } if(CarInfo[vehicleid][mod14] >= 1000 && CarInfo[vehicleid][mod14] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod14])) != CarInfo[vehicleid][mod14]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod14]); } } if(CarInfo[vehicleid][mod15] >= 1000 && CarInfo[vehicleid][mod15] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod15])) != CarInfo[vehicleid][mod15]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod15]); } } if(CarInfo[vehicleid][mod16] >= 1000 && CarInfo[vehicleid][mod16] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod16])) != CarInfo[vehicleid][mod16]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod16]); } } if(CarInfo[vehicleid][mod17] >= 1000 && CarInfo[vehicleid][mod17] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod17])) != CarInfo[vehicleid][mod17]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod17]); } } if(CarInfo[vehicleid][mod18] >= 1000 && CarInfo[vehicleid][mod18] <= 1193) { if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod18])) != CarInfo[vehicleid][mod18]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod18]); } } if(CarInfo[vehicleid][paintjob] > -1) { ChangeVehiclePaintjob(vehicleid,CarInfo[vehicleid][paintjob]); } if(CarInfo[vehicleid][cLicense] > 0) { SetVehicleNumberPlate(vehicleid,CarInfo[vehicleid][cLicense]); } } else { if(CarInfo[vehicleid][cLicense] > 0) { SetVehicleNumberPlate(vehicleid,CarInfo[vehicleid][cLicense]); } } return 1; } forward SaveCar(idx); public SaveCar(idx) { new file[128]; format(file, sizeof(file),"cars/%d.ini",idx); if(dini_Exists(file)) { dini_IntSet(file,"Model",CarInfo[idx][cModel]); dini_IntSet(file,"ID",CarInfo[idx][cID]); dini_FloatSet(file,"Location_X",CarInfo[idx][cLocationx]); dini_FloatSet(file,"Location_Y",CarInfo[idx][cLocationy]); dini_FloatSet(file,"Location_Z",CarInfo[idx][cLocationz]); dini_FloatSet(file,"Angle",CarInfo[idx][cAngle]); dini_IntSet(file,"Color_1",CarInfo[idx][cColorOne]); dini_IntSet(file,"Color_2",CarInfo[idx][cColorTwo]); dini_Set(file,"Plate",CarInfo[idx][cLicense]); dini_Set(file,"Owner",CarInfo[idx][cOwner]); dini_IntSet(file,"Owned",CarInfo[idx][cOwned]); dini_IntSet(file,"Mod_1",CarInfo[idx][mod1]); dini_IntSet(file,"Mod_2",CarInfo[idx][mod2]); dini_IntSet(file,"Mod_3",CarInfo[idx][mod3]); dini_IntSet(file,"Mod_4",CarInfo[idx][mod4]); dini_IntSet(file,"Mod_5",CarInfo[idx][mod5]); dini_IntSet(file,"Mod_6",CarInfo[idx][mod6]); dini_IntSet(file,"Mod_7",CarInfo[idx][mod7]); dini_IntSet(file,"Mod_8",CarInfo[idx][mod8]); dini_IntSet(file,"Mod_9",CarInfo[idx][mod9]); dini_IntSet(file,"Mod_10",CarInfo[idx][mod10]); dini_IntSet(file,"Mod_11",CarInfo[idx][mod11]); dini_IntSet(file,"Mod_12",CarInfo[idx][mod12]); dini_IntSet(file,"Mod_13",CarInfo[idx][mod13]); dini_IntSet(file,"Mod_14",CarInfo[idx][mod14]); dini_IntSet(file,"Mod_15",CarInfo[idx][mod15]); dini_IntSet(file,"Mod_16",CarInfo[idx][mod16]); dini_IntSet(file,"Mod_17",CarInfo[idx][mod17]); dini_IntSet(file,"Mod_18",CarInfo[idx][mod18]); dini_IntSet(file,"Paintjob",CarInfo[idx][paintjob]); } }[/pawn]
  3. myhaitza97 nu cred ca trb protectie... cand scot sistemul de masini nu mai da nici crash nici warning...
  4. mersi daca ma poti ajuta su cu asta. http://www.sa-mp.ro/forum/index.php?topic=29177.0 (daca este nevoie platesc) .
  5. Te flodeaza... ai grija . asta stiu eu vreau rezolvarea....
  6. la 3 incercari ar trebui sa ia ban. dar este un fel de flood cand incearca cnv asta am ping 2000+ ....
  7. Salut samp.ro am gasit asta in login. [pawn][22:21:02] BAD RCON ATTEMPT BY: 85.17.194.78 [22:21:02] BAD RCON ATTEMPT BY: 85.17.194.78 [22:21:02] BAD RCON ATTEMPT BY: 85.17.194.78 [22:21:02] BAD RCON ATTEMPT BY: 85.17.194.78 [22:21:03] BAD RCON ATTEMPT BY: 85.17.194.78 [22:21:03] BAD RCON ATTEMPT BY: 85.17.194.78 [22:21:03] BAD RCON ATTEMPT BY: 85.17.194.78 [22:21:03] BAD RCON ATTEMPT BY: 85.17.194.78 [22:21:10] BAD RCON ATTEMPT BY: 85.17.194.78 [22:21:10] BAD RCON ATTEMPT BY: 85.17.194.78 [22:21:10] BAD RCON ATTEMPT BY: 85.17.194.78 [22:21:10] BAD RCON ATTEMPT BY: 85.17.194.78[/pawn] Imi poate zice cineva o rezolvare?
  8. Madu99

    Hacker

    Rezolvat! pentru cei care au patito schimbati versiunea la server cu cea actuala 0.3x (R2) Dati TC.
  9. madu nu cred si eu am aceasi problema... la mn a intrat una baybe si cica imi da timeout la playeri pana inchid serveru .. nici nu stiu ce sa cred... Nu cred ca exista hack pentru crash 24/24 cel putin din cate stiu eu.
  10. Madu99

    Hacker

    Acela sunt eu + nu ti-as face nimic daca Just4Fun , nu m-ar ruga sa fac asta . multumesc . + nu o sa gasesti raspuns .. Totul are un raspuns te asigur ;)
  11. Madu99

    Hacker

    am pus toate fisierele la locul lor+ cfg dar aceleasi rezultate...
  12. Madu99

    Hacker

    Sall samp.ro am o problema nu stiu cum sau cu ce un "hacker" imi opreste sv: tot ce mia aparut in log [17:40:58] Packet was modified, sent by id: 1, ip: 92.80.228.42:12250 [17:40:58] Packet was modified, sent by id: 1, ip: 92.80.228.42:12250 [17:40:58] Packet was modified, sent by id: 1, ip: 92.80.228.42:12250 [17:40:59] Incoming connection: 92.80.228.42:12253 [17:40:59] Packet was modified, sent by id: 2, ip: 92.80.228.42:12253 [17:41:07] Incoming connection: 92.80.228.42:12254 [17:41:08] Packet was modified, sent by id: 1, ip: 92.80.228.42:12254 [17:41:15] Incoming connection: 92.80.228.42:12255 [17:41:16] [join] Spirtox has joined the server (2:92.80.228.42) [17:41:18] [junkbuster] Spirtox (92.80.228.42) has been kicked for Too high ping. [22001/900]. [17:41:18] [part] Spirtox has left the server (2:2) [17:41:21] Incoming connection: 92.80.228.42:12257 [17:41:24] [join] Spirtox has joined the server (1:92.80.228.42) [17:42:57] Spirtox has logged in. [17:43:06] Dark. has logged in. [17:43:48] Incoming connection: 79.119.162.98:3646 [17:43:49] [join] ThePRO has joined the server (2:79.119.162.98) [17:43:58] ThePRO has logged in. [17:44:00] Incoming connection: 86.125.162.87:2482 [17:44:01] [join] Just4Fun has joined the server (3:86.125.162.87) [17:44:08] Just4Fun has logged in. [17:44:08] [death] Just4Fun died 255 [17:44:21] Incoming connection: 82.79.213.137:1992 [17:44:21] [join] Udoa. has joined the server (4:82.79.213.137) [17:44:32] [part] Udoa. has left the server (4:0) [17:44:38] [chat] [Just4Fun]: a [17:45:23] Incoming connection: 92.80.228.42:12299 [17:45:26] [join] MaDuuu has joined the server (4:92.80.228.42) [17:45:29] Incoming connection: 178.138.99.222:51258 [17:45:30] [join] .cosmin. has joined the server (5:178.138.99.222) [17:45:31] Incoming connection: 82.79.213.137:2036 [17:45:31] [join] Alexander. has joined the server (6:82.79.213.137) [17:45:34] MaDuuu has logged in.
  13. Salut samp.ro am o problema la server si inca nu am gasito... tot iau playeri crash....de la ce poate fi cauzate aceste crashuri? zicetim cateva motive... Am cam multe obiecte adaugate posibil de la asta?
  14. Madu99

    Bug /tod

    ma ajuta cnv... ?
  15. Aceiasi problema am si eu ... /v park [pawn] else if(strcmp(x_nr,"park",true) == 0) { if(PlayerInfo[playerid][pCar] == 9999) { SendClientMessage(playerid, COLOR_GREY, "Tu nu detii un Vehicul."); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new carid = GetPlayerVehicleID(playerid); if(carid == PlayerInfo[playerid][pCar]) { new Float:x,Float:y,Float:z; new Float:a; GetPlayerName(playerid, playername, sizeof(playername)); GetVehiclePos(carid, x, y, z); GetVehicleZAngle(carid, a); CarInfo[carid][cLocationx] = x; CarInfo[carid][cLocationy] = y; CarInfo[carid][cLocationz] = z; CarInfo[carid][cAngle] = a; format(string, sizeof(string), "{FFFFFF}Masina ta a fost salvata {FF3333}%f.01, %f.01, %f.01, Tine minte ! La RR va fi spawnata aici!",x,y,z); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); SaveCar(carid); } else { SendClientMessage(playerid, COLOR_GREY, "Tu nu esti in masina ta."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Tu nu esti in masina ta."); return 1; } return 1; }[/pawn] /v color [pawn] else if(strcmp(x_nr,"color",true) == 0) { if(PlayerInfo[playerid][pCar] == 9999) { SendClientMessage(playerid, COLOR_GREY,"* Nu detineti un vehicul personal pentru al vopsi."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "Folosire: /v color [ColorOneID] [ColorTwoID] (50.000$ cost)"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 && color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Ati gresit id`ul culori!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "Folosire: /v color [ColorOneID] [ColorTwoID] (50.000$ cost)"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 && color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Ati gresit id`ul culori!"); return 1; } if(GetPlayerMoney(playerid) < 50000) { SendClientMessage(playerid, COLOR_GREY, " Nu ai suficienti bani!"); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehid = GetPlayerVehicleID(playerid); if(CarInfo[vehid][cID] == PlayerInfo[playerid][pCar]) { CarInfo[vehid][cColorOne] = color1; CarInfo[vehid][cColorTwo] = color2; ChangeVehicleColor(vehid, color1, color2); GivePlayerMoney(playerid, -50000); SendClientMessage(playerid, COLOR_WHITE, "{FF3333}Ti-ai modificat culoarea!"); SaveCar(vehid); } else { SendClientMessage(playerid, COLOR_GREY, "Tu nu esti in masina ta."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Tu nu esti in masina ta."); return 1; } return 1; }[/pawn]
  16. Madu99

    Bug /tod

    Ai cumva Weather System? Nu Uite [pawn] if(strcmp(cmd, "/weather", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 4) { SendClientMessage(playerid, COLOR_GRAD1, " Nu ai dreptul de a utiliza aceasta comanda!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "{D580FE}Foloseste:{FFFFFF} /weather [weatherid]"); return 1; } new weather; weather = strval(tmp); if(weather < 0||weather > 45) { SendClientMessage(playerid, COLOR_GREY, " Weather ID can't be below 0 or above 45 !"); return 1; } SetPlayerWeather(playerid, weather); SendClientMessage(playerid, COLOR_GREY, " Weather Set !"); } return 1; }[/pawn]
  17. Madu99

    Bug /tod

    Nu stiu cum pot rezolva aceasta problema... Deci cand dau /tod nu se modifica timpul iar seara pe la ora 22:00 cam asa mereu se schimba timpul si apare la tot sv mov ca si cum cineva ar da /weatherall 99.Dupa payday isi revine. De fiecare data trebuie sa dau /weatherall 0 .... /tod [pawn] if(strcmp(cmd, "/tod", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{D580FE}Foloseste:{FFFFFF} /tod [timeofday] (0-23)"); return 1; } new hour; hour = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 1337) { SetWorldTime(hour); format(string, sizeof(string), " Time set to %d Hours.", hour); BroadCast(COLOR_GRAD1, string); } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !"); } } return 1; }[/pawn] /weatherall [pawn] if(strcmp(cmd, "/weatherall", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 4) { SendClientMessage(playerid, COLOR_GRAD1, " Nu ai dreptul de a utiliza aceasta comanda!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "{D580FE}Foloseste:{FFFFFF} /weatherall [weatherid]"); return 1; } new weather; weather = strval(tmp); if(weather < 0||weather > 45) { SendClientMessage(playerid, COLOR_GREY, " Weather ID can't be below 0 or above 45 !"); return 1; } SetWeather(10); SendClientMessage(playerid, COLOR_GREY, " Weather Set to everyone !"); } return 1; }[/pawn]
  18. Madu99

    bug money

    [pawn]pCash[/pawn] Asta e variabila in gm
  19. Madu99

    bug money

    linia 93 [pawn]stock GivePlayerCash(playerid, money)[/pawn] linia 94 [pawn]{[/pawn] linia 95 [pawn]PlayerInfo[playerid][pCash] += money; //Ma rog aici modifici in functie de sistemul tau..la pCash ma refer.[/pawn]
  20. Madu99

    bug money

    C:\Documents and Settings\mada\Desktop\combine.pwn(93) : error 029: invalid expression, assumed zero C:\Documents and Settings\mada\Desktop\combine.pwn(93) : error 017: undefined symbol "money" C:\Documents and Settings\mada\Desktop\combine.pwn(94) : warning 217: loose indentation C:\Documents and Settings\mada\Desktop\combine.pwn(95) : error 017: undefined symbol "PlayerInfo" C:\Documents and Settings\mada\Desktop\combine.pwn(95) : warning 215: expression has no effect C:\Documents and Settings\mada\Desktop\combine.pwn(95) : error 001: expected token: ";", but found "]" C:\Documents and Settings\mada\Desktop\combine.pwn(95) : error 029: invalid expression, assumed zero C:\Documents and Settings\mada\Desktop\combine.pwn(95) : fatal error 107: too many error messages on one line Da eroare
  21. Madu99

    bug money

    unde mai exact pun asta... ?
  22. Madu99

    bug money

    La anumite GM-uri se foloseste GivePlayerCash in loc de GivePlayerMoney. Incearca si asa. Am inlocuit GivePlayerMoney cu GivePlayerCash si imi da eroare [pawn]error 017: undefined symbol "GivePlayerCash"[/pawn]
  23. Madu99

    bug money

    nu inteleg.. ?
  24. Madu99

    bug money

    Dupa ce faci misiunea primesti bani si dupa scad.. [pawn]#include <a_samp> #define COLOR_DARKGOLD 0x808000AA #define COLOR_RED 0xFF0000AA #define COLOR_YELLOW 0xFFFF00AA #define Checkpoint1 -256.0010,-1542.3809,3.9930 #define Checkpoint2 -231.8289,-1467.9810,4.9421 #define Checkpoint3 -193.9747,-1375.2502,4.7856 #define Checkpoint4 -246.0348,-1326.1063,8.9300 #define Checkpoint5 -407.1459,-1371.5518,23.6588 #define Checkpoint6 -564.7697,-1302.4977,22.5511 #define Checkpoint7 -569.0633,-1508.3352,9.1518 new combinejobrunning = 0; new info; forward GivePlayerOneExp(playerid); public OnFilterScriptInit() { AddStaticVehicleEx(532,-370.1018,-1463.1403,26.6953,287.0754,0,0,10); // combine 1 AddStaticVehicleEx(532,-364.2571,-1479.7140,26.7041,285.6486,0,0,10); // combine 2 AddStaticVehicleEx(532,-361.6030,-1501.2618,24.8698,285.8201,0,0,10); // combine 3 info = CreatePickup(1239,1,-366.1941,-1440.3253,25.7266,-1); } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/combine", cmdtext, true, 10) == 0) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) { SetPlayerCheckpoint(playerid, Checkpoint1, 3.0); CreateObject(823,-256.0010,-1542.3809,3.9930,0,0,0); combinejobrunning = 1; GameTextForPlayer(playerid, "~g~Ati inceput munca!!", 3000, 3); new name[MAX_PLAYER_NAME], string[48]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s acum poti incepe munca.", name ); SendClientMessageToAll(COLOR_RED, string); return 1; } SendClientMessage(playerid, COLOR_RED,"Trebuie sa fii într-un camion pentru a începe treaba"); } if (strcmp("/combineinfo", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Ai nevoie de recolta buruienilor."); SendClientMessage(playerid, COLOR_YELLOW, "Tastati /combine si urmariti checkpointu`rile de culoare rosie."); SendClientMessage(playerid, COLOR_YELLOW, "Urmariti toate checkpointu`rile pentru a termina munca."); return 1; } return 0; } public OnPlayerEnterCheckpoint(playerid) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) { if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint1)) { SetPlayerCheckpoint(playerid, Checkpoint2, 7.0); CreateObject(823,-231.8289,-1467.9810,4.9421,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint2)) { SetPlayerCheckpoint(playerid, Checkpoint3, 7.0); CreateObject(823,-193.9747,-1375.2502,4.7856,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint3)) { SetPlayerCheckpoint(playerid, Checkpoint4, 7.0); CreateObject(823,-246.0348,-1326.1063,8.9300,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint4)) { SetPlayerCheckpoint(playerid, Checkpoint5, 7.0); CreateObject(823,-407.1459,-1371.5518,23.6588,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint5)) { SetPlayerCheckpoint(playerid, Checkpoint6, 7.0); CreateObject(823,-564.7697,-1302.4977,22.5511,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint6)) { SetPlayerCheckpoint(playerid, Checkpoint7, 7.0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint7)) { GivePlayerMoney(playerid, 10000); GameTextForPlayer(playerid, "~g~Ai terminat treaba, si ai primit!", 3000, 3); SetVehicleToRespawn(2); combinejobrunning = 0; DisablePlayerCheckpoint(playerid); } } } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) { SendClientMessage(playerid, COLOR_RED, "Putetei începe lucrarea tastati /combine"); } return 0; } public OnPlayerExitVehicle(playerid, vehicleid) { if((combinejobrunning) == 1) { combinejobrunning = 0; SendClientMessage(playerid, COLOR_RED, "Ati iesit din Combina.Daca doriti sa continuati munca intrati din nou."); }else if((combinejobrunning) == 0){ //Nothing } } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == info) { GameTextForPlayer(playerid, "~g~Bine ati venit la munca( combina, utilizati /combineinfo pentru mai multe dedatlii", 3000, 3); } }[/pawn]
×
×
  • 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.