Jump to content

IcE.

Membru
  • Posts

    1.094
  • Joined

  • Last visited

Everything posted by IcE.

  1. Intra in fs-uri si vezi ca calbaku OnPlayerCommandText sa returneze 0 [pawn] public OnPlayerCommandText(playerid, cmdtext[]) { return 0; } [/pawn]
  2. IcE.

    Faction Car

    Bravo. Dar exista o varianta si mai usoara . [pawn] new pdcar[4];//nr-u masinilor +1 forward IsACopCar(carid) public IsACopCar(carid) { for(new i = 0; i < sizeof(pdcar); i++) { if(carid == pdcar) { return 1; } } return 0; } //OnGameModeInit pdcar[0] = AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay); pdcar[1] = AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay); pdcar[2] = AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay); pdcar[3] = AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay); [/pawn]
  3. Nai postat corect. [pawn]new AdminDuty[MAX_PLAYERS];[/pawn]
  4. Inlocuie cu asta [pawn] if(IsPlayerInVehicle(playerid, carid)) { PlayAudioStreamForPlayer(playerid,"http://stream.profm.ro:8012/profm.mp3"); return 1; } [/pawn]
  5. Cauta.
  6. [pawn] if(strcmp(cmd,"/radiocar",true)==0) { if(PlayerInfo[playerid][pDonateRank] > 1) { if(IsPlayerConnected(playerid)) { new x_nr[256]; new carid = GetPlayerVehicleID(playerid); new m; m = GetVehicleModel(carid); new string[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________"); SendClientMessage(playerid, COLOR_GRAD2, "Syntax: /radiocar [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available Name's: ProFm , ClubStation , ProB"); SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________"); return 1; } if(strcmp(x_nr,"profm",true) == 0) { if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581) { if(IsPlayerInVehicle(playerid, carid)) { PlayAudioStreamForPlayer(playerid,"http://stream.profm.ro:8012/profm.mp3"); return 1; { else { SendClientMessage(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio."); return 1; } } else { SendClientMessage(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio."); return 1; } } if(strcmp(x_nr,"clubstation",true) == 0) { if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581) { if(IsPlayerInVehicle(playerid, carid)) { PlayAudioStreamForPlayer(playerid,"http://asculta.radio-conect.net:8000/listen.pls"); return 1; } else { SendClientMessage(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio."); return 1; } } else { SendClientMessage(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio."); return 1; } } if(strcmp(x_nr,"prob",true) == 0) { if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581) { if(IsPlayerInVehicle(playerid, carid)) { PlayAudioStreamForPlayer(playerid,"http://live128.radioprob.ro:9999/listen.pls") return 1; } else { SendClientMessage(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio."); return 1; } } else { SendClientMessage(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio."); return 1; } } } } else { SendClientMessage(playerid, COLOR_CRS3," ** You don't have a Premium Account."); } return 1; }[/pawn]
  7. Titlu.
  8. IcE.

    problema

    Cauta in luxadmin OnPlayerCommandText si vezi sa returneze 0.
  9. Iti arat un ex. dupa un gm gasit la mine in PC: [pawn] if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0) { /*new string[256]; new cut = deathcost; //PlayerInfo[playerid][pLevel]*deathcost; //GivePlayerCash(playerid, -cut); GivePlayerCash(playerid, -cut); format(string, sizeof(string), "DOC: Your Medical Bill comes to $%d, Have a nice day.", cut); SendClientMessage(playerid, TEAM_CYAN_COLOR, string); MedicBill[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0;*/ PlayerInfo[playerid][pDeaths] += 1; SetPlayerHealth(playerid, 25.0); SetPlayerInterior(playerid, 5); rand = random(sizeof(gMedicSpawns)); SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player SetPlayerFacingAngle(playerid, 270.0); TogglePlayerControllable(playerid, 0); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~y~You are recovering from your ~r~wounds~y~...", 35000, 3); MedicTime[playerid] = 1; if(PlayerInfo[playerid][pDonateRank] > 0) { NeedMedicTime[playerid] = 30; } else { NeedMedicTime[playerid] = 60; } PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0); return 1; }[/pawn]
  10. Inlocuie linia 17 cu asta: [pawn]if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 15.0, 0.0, 0.0, 0.0)){[/pawn] Si nia postat unde trebuie.
  11. De la cine ai netu? Nu conteaza ce plata de retea ai, ip nu are nici un rol cu placa de retea. Placa de retea da altceva (nu stiu cum se numeste).
  12. Decand scrisu in rusa e scris in chineza si e folosit numa in modu InDungi. ?!? Si da nu e bun titlu.
  13. 1.Ii dai ban. 2.Cu anti cheat :|
  14. Din cate stiu eu nu exista...
  15. IcE.

    Problema Dini

    Acele erori apar ca ai definit prost , tu ai definit new Captured1[MAX_GANGS]; si tu folosesti Captured1 = dini_Get("/Variables/Gang.ini", "CapturedBy1");. Dc ai bagat acel [MAX_GANGS] ? (Scoatel)
  16. :))) Prima data cand aud de asa ceva. Probabil foloseste VehicleParamsEx. [pawn] new frana[MAX_PLAYERS]; #define OFF 0 #define ON 1 new engine, lights, alarm, doors, bonnet, boot, objective, panels, tires; if(strcmp(cmd, "/frana", true) == 0) { if(frana[playerid] == 0) { SendClientMessage(playerid, COLOUR_INFORMATION, "Ai tras frana de mana!."); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), OFF, lights, alarm, doors, bonnet, boot, objective); frana = 1; } else { SendClientMessage(playerid, COLOUR_INFORMATION, "Ai impins frana de mana!."); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), ON, lights, alarm, doors, bonnet, boot, objective); frana = 0; } } [/pawn]
  17. Frumos /ansellroom /rentcam /moregears Ar trebui sa le ascunzi mai bine
  18. IcE.

    /nrg

    Titlu.
  19. IcE.

    Mapa 0.3d

    1. RemoveObject se pune la OnPlayerConnect. 2.CreateObject se pune la OnGameMode. Incerca sa le pui cu un streamer.
  20. IcE.

    Problema mysql

    http://solidcdn.net/files/394/a_mysql.inc
  21. Sterge toata functia nu doar linia care ai postato.
  22. E problema PAWN, ce legatura are cu clientu ? Sterge toata functia stock sscanf(string[], format[], {Float,_}:...)
  23. Nai postat unde trebuie.
  24. Trebuie refacuta. http://www.sa-mp.ro/forum/index.php/topic,17838.0.html
  25. IcE.

    log.

    Cauta in gm pAdmin] = si vezi unde scrie un nr .
×
×
  • 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.