Jump to content

DarkyTheAngel

Membru
  • Posts

    1,005
  • Joined

  • Last visited

    Never

Everything posted by DarkyTheAngel

  1. Esti un "nestiutor" .Ti-ar zice si Rock dar el nu mai are cont . P.S: Rog un moderator pe aceasta sectiune sa inchida acest topic ca, vad ca se lasa cu "scanteie" .
  2. Schimba linia cu asta: new WinterWeather [ ] = { 1 , 4 , 5 , 7 , 8 , 9 , 12 , 15 , 17 , 20 , 25 , 27 , 30 } ;
  3. Pai nu vad nimic in neregula, si cred ca nu ai tu toate masinile in script.Verifica scriptul.Cauta CreateVehicle, AddStaticVehicle si AddStaticVehicleEx.
  4. Nu cred ca e de la asta.Iti face chestia asta de mult timp? Verifica plugin-urile si fale update si posteaza server.cfg si server_log.txt.
  5. De exemplu: SPD ( playerid , 14 ... Acel "14" poti sa il schimbi in oricare alt numar (asta inseamna sa schimbi id-ul dialogului): SPD ( playerid , 999 ...
  6. Poate vrei sa spui: "sa urc baza de date in phpMyAdmin".Apropo, vezi ca ai facut reclama, asta inseamna ca sunt obligat sa iti sterg url-ul postat si sa iti inchid topicul. Topic Locked!
  7. Ai facut vre-o schimbare modului de joc in ultima vreme?
  8. Pune: forward ShowStats ( playerid , targetid ) ; Inainte de: public ShowStats ( playerid , targetid )
  9. if ( newstate == PLAYER_STATE_DRIVER ) { if ( vehicleid == rhaskoscar3 ) { new name [ MAX_PLAYER_NAME ] ; GetPlayerName ( playerid , name , sizeof ( name ) ) ; if ( strcmp ( name , "Rhaskos" , true ) == 0 ) { return ( 1 ) ; } else { #define SCM SendClientMessage RemovePlayerFromVehicle ( playerid ) ; SCM ( playerid , -1 , "Aceasta masina este al lui Rhaskos." ) ; SCM ( playerid , -1 , "Daca vrei si tu una doneaza 3 euro." ) ; } } }
  10. if ( strcmp ( cmd , "/skin" , true ) == 0 ) { if ( DM [ playerid ] == 1 ) return SCM ( playerid , -1 , "ERROR: Nu poti folosi comenzi in deathmatch." ) ; if ( DM [ playerid ] == 0 ) { new skinid ; if ( sscanf ( cmdtext , "d" , skinid ) ) return SCM ( playerid , -1 , "USAGE: /skin [skinid]" ) ; if ( skinid > 300 ) return SCM ( playerid , -1 , "USAGE: /skin [0-300]" ) ; SetPlayerSkin ( playerid , skinid ) ; } } return ( 1 ) ; } if ( strcmp ( cmd , "/vw" , true ) == 0 ) { if ( DM [ playerid ] == 1 ) return SCM ( playerid , -1 , "ERROR: Nu poti folosi comenzi in deathmatch." ) ; if ( DM [ playerid ] == 0 ) { new vid ; if ( sscanf ( cmdtext , "d" , vid ) ) return SCM ( playerid , -1 , "USAGE: /vw [virtualworld]" ) ; SetPlayerVirtualWorld ( playerid , vid ) ; } } return ( 1 ) ; } EDIT: Se pare ca xxSPEEDYxx a fost mai rapid .
  11. CMD:para( playerid , params [ ] ) { #define SCM SendClientMessage GivePlayerWeapon ( playerid , 46 , 9999 ) ; new Float:pos [ 3 ] ; GetPlayerPos ( playerid , pos [ 0 ] , pos [ 1 ] , pos [ 2 ] ) ; SetPlayerPos ( playerid , pos [ 0 ] , pos [ 1 ] , pos [ 2 ] + 10 ) ; SCM ( playerid , 0x630066FF , "GO!GO!GO!" ) ; return ( 1 ) ; }
  12. Da, poti pune. 0 - culoare 1 - culoare 15 - timpul de generare fara un sofer
  13. Nu cred ca este de la placa video.Depinde de rezolutie pe care ai bagat-o.
  14. Ai incercat sa folosesti in joc /loadfs ...?
  15. if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vehicle", true) == 0) // By LordMan { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first ! "); return 1; } if(PlayerInfo[playerid][pCarBan] == 1) { SendClientMessage(playerid, COLOR_GREY, " You'r banned to use /v commands ! "); return 1; } if(PlayerInfo[playerid][pLevel] >= 3 && PlayerInfo[playerid][pConnectTime] >= 36) { new x_nr[64]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: park, color, create"); return 1; } else if(strcmp(x_nr,"park",true) == 0) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "You'r not in your car."); if(PlayerInfo[playerid][pCar] == 9999) { SendClientMessage(playerid, COLOR_GREY, "You don't own a car."); 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), "You have saved your vehicle at the position %f.01, %f.01, %f.01, Remember it, it will respawn here!",x,y,z); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); SaveCar(carid); } } return 1; } else if(strcmp(x_nr,"color",true) == 0) { if(PlayerInfo[playerid][pCar] == 9999) { SendClientMessage(playerid, COLOR_GREY,"* You don't have a vehicle to respray."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /v color [ColorOneID] [ColorTwoID] (50.000$ cost)"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 && color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /v color [ColorOneID] [ColorTwoID] (50.000$ cost)"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 && color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } if(GetPlayerMoney(playerid) < 50000) { SendClientMessage(playerid, COLOR_GREY, " Nu ai suficienti bani!"); return 1; } if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "You'r not in your car."); 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, "Ti-ai modificat culoarea!"); SaveCar(vehid); } } return 1; } else if(strcmp(x_nr,"create",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: create [color1] [color2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 && color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: create [color1] [color2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 && color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } new car = 0; if(PlayerInfo[playerid][pCar] == 9999) { } else return SendClientMessage(playerid, COLOR_GREY,"* You already own a car!"); for(new h = 760; h < sizeof(CarInfo); h++) { if(CarInfo[h][cOwned] == 0) { car = h; h = 1300; } } new Float:AX,Float:AY,Float:AZ,Float:Angle; GetPlayerPos(playerid, AX,AY,AZ); GetPlayerFacingAngle(playerid, Angle); format(string, 128, "cars/%d.ini", car); new playername2[MAX_PLAYER_NAME]; playername2 = PlayerName(playerid); if(dini_Exists(string)) { CarInfo[car][cID] = car; CarInfo[car][cOwned] = 1; strmid(CarInfo[car][cOwner], playername2, 0, strlen(playername2), 999); CarInfo[car][cLocationx] = AX; CarInfo[car][cLocationy] = AY; CarInfo[car][cLocationz] = AZ; CarInfo[car][cAngle] = Angle; CarInfo[car][cModel] = 522; CarInfo[car][cColorOne] = color1; CarInfo[car][cColorTwo] = color2; SaveCar(car); } else { dini_Create(string); CarInfo[car][cID] = car; CarInfo[car][cOwned] = 1; strmid(CarInfo[car][cOwner], playername2, 0, strlen(playername2), 999); CarInfo[car][cLocationx] = AX; CarInfo[car][cLocationy] = AY; CarInfo[car][cLocationz] = AZ; CarInfo[car][cAngle] = Angle; CarInfo[car][cModel] = 522; CarInfo[car][cColorOne] = color1; CarInfo[car][cColorTwo] = color2; SaveCar(car); } PlayerInfo[playerid][pCar] = car; ownedcar[car] = CreateVehicle(522,CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],CarInfo[car][cAngle],CarInfo[car][cColorOne],CarInfo[car][cColorTwo],300); SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!"); SendClientMessage(playerid, COLOR_GRAD2, "Type /vehicle to view the vehicle manual!"); GameTextForPlayer(playerid, "~p~Congratulations~n~~w~Don't forget where you placed you'r new ~b~car!", 5000, 3); } else { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: color, park, create"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, "Trebuie sa ai level 3 si 36 ore pe server!"); return 1; } } return 1; }
  16. AddStaticVehicleEx are un numar de 8 argumente iar in liniile postate de tine sunt doar 5 argumente.Ex: hitmencar [ 0 ] = AddStaticVehicleEx ( 579 , 1354.7737 , -248.3715 , 1.2208 , 188.6421 ) ; Ar trebui sa arate asa: hitmencar [ 0 ] = AddStaticVehicleEx ( 579 , 1354.7737 , -248.3715 , 1.2208 , 188.6421 , 0 , 1 , 15 ) ;
  17. Se incurca id-urile dialogurilor.Schimba-le.
  18. In script, ai cumva coduri de genul asta?: AddHouse ( ... AddHouse ( ... AddHouse ( ...
  19. Raff, schimba acea linie cu asta: PlayAudioStreamForPlayer ( playerid , "dl.fileshare.ro/download/28946665/Dragonu%5C%27+-+Aloha.mp3" ) ;
  20. Doamne.Omul nu are nevoie de nici un update, doar a scris el gresit codul.Schimba: if ( sscanf ( params , "d" , skinid ) ) In asta: if ( sscanf ( cmdtext , "d" , skinid ) ) Pentru ca in comanda aia nu exista parametrii.
  21. Da, este de la mine de pe server si o sa il deschid saptamana viitoare.Mai multe pareri, pot primi ? P.S: 700 posturi .
  22. Daca nu sti ce fisier lipseste, pentru ce mai ai nevoie de linie? Iar pentru stasondj, fa-ti update la includeri (versiunea 0.3x) si adauga urmatoarele fisiere: #include " YSI\y_races " #include " mysql " Restul de erori nu cred ca sunt de la fisierele incluse.
  23. In scriptfiles/Houses ai dosarul Users?
  24. Atunci adauga asta in script: enum pInfo { pAdmin } ; new PlayerInfo [ MAX_PLAYERS ] [ pInfo ] ;
  25. Schimba pAdmin cu numele cu care este definit rang-ul de administrator.
×
×
  • 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.