Jump to content

DarkyTheAngel

Membru
  • Posts

    1,005
  • Joined

  • Last visited

    Never

Everything posted by DarkyTheAngel

  1. [pawn]new JoinPed [ ] [ ] = { {280},//POLICE_FORCE {281}, {282}, {283}, {284}, {285}, {148}, {286},//Federal Of Investigation {164}, {285},//National Guard {276}, {70},//FIRE/AMBULANCE {274}, {275}, {277}, {278}, {279}, {258},//The Sicilian Mafia {111}, {126}, {125}, {124}, {98},//23 {117},//The Triads {118}, {120}, {169}, {121}, {122}, {127},//HITMANS {165}, {186}, {93}, {141}, {148},//NEWS_REPORTERS {188}, {187}, {255},//TAXI_CAB_COMPANY {253}, {8},//TOW_CAR_COMPANY {42}, {106},//The Barzini Family {105}, {107}, {269}, {271}, {270}, {195}, {102},//The Paterno Family {103}, {104}, {296}, {108},//The Tattaglia Family {110}, {111}, {126}, {122}, {114},//The 69Pier Mobs Family {116}, {117}, {46} };[/pawn] [pawn]new Peds [ ] [ ] = { //CIVILIANS DOWN HERE {248},{100},{256},{263},{262},{261},{260},{259},{257},{256},{196}, {252},{251},{249},{246},{245},{244},{243},{242},{241},{240},{197}, {238},{237},{236},{235},{234},{233},{232},{231},{230},{229},{94}, {226},{225},{224},{223},{222},{221},{220},{219},{218},{60},{95}, {217},{216},{215},{214},{213},{212},{211},{210},{209},{247},{78}, {207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{290}, {194},{193},{192},{191},{190},{189},{185},{184},{183},{239},{77}, {182},{181},{271},{179},{178},{176},{172},{170},{168},{167},{162}, {161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151}, {146},{145},{144},{143},{142},{140},{139},{138},{137},{136},{135}, {134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},//110 {92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{76}, {75},{73},{72},{69},{68},{105},{66},{64},{63},{62},{58},{57},{56},{55},//27 {54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35}, {34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20}, {19},{18},{17},{16},{15},{14},{13},{12},{11},{10},{1},{2}, {291},//16,16,16,16 {292},//CESAR {293},//OGLOC {187}, {297},//MADDOGG {298},//CAT }; [/pawn]
  2. Mai ai un topic deschis pe aceasta tema. Topic Closed!
  3. Pai, acele imagini se fac in "Photoshop" sau le gasesti pe internet.De exemplu, uite doua imagini: P.S: Nu sunt facute de mine, eu doar le-am gasit.
  4. DarkyTheAngel

    Chilliad

    Sincer, nu stiu de ce, dar imi place.Buna treaba.
  5. Autorul nu mai prezinta interes pentru topicul lui, probabil ca problema a fost rezolvata. Topic Locked!
  6. [pawn] new string [ 64 ] , kname [ 64 ] ; GetPlayerName ( killerid , kname , sizeof ( kname ) ) ; format ( string , sizeof ( string ) , "Ai fost omorat de %s." , kname ) ; SendClientMessage ( playerid , -1 , string ) ;[/pawn] Scuze, greseala mea.Am uitat sa pun o virgula .
  7. Simbolul "vehicleid" este definit de mai multe ori.Presupun ca aici este eroarea: [pawn]public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { for(new i = 0; i < GetMaxPlayers(); i++) if(IsPlayerConnected(i) && !IsPlayerNPC(i)) { new string[256]; new vehicleid = GetPlayerVehicleID(i); format(string,sizeof string ,"{B7FF00}Marca: {00FFEE}%s", GetVehicleName(vehicleid)); } return 1; }[/pawn] Prima data nu am fost nici eu atent, si nu am remarcat greselile.Codul corect ar fi: [pawn]public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { for(new i = 0; i < GetMaxPlayers(); i++) if(IsPlayerConnected(i) && !IsPlayerNPC(i)) { new lstring[256]; format(lstring,lsizeof string ,"{B7FF00}Marca: {00FFEE}%s", GetVehicleName(vehicleid)); vehicle3Dtext[vehicleid] = Create3DTextLabel(lstring, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1); Attach3DTextLabelToVehicle(vehicle3Dtext[vehicleid] , vehicleid, 0.0, 0.0, 2.0); } return 1; }[/pawn]
  8. Cum sa pui ma #define OnPlayerEnterVehicle? Iti spune chestia aia pentru ca ai public-ul OnPlayerEnterVehicle de mai multe ori in script.
  9. In acest caz, e bine ca ai facut acest topic (cred), fiind si in categoria de "off-topic'.
  10. Verifica postul meu anterior.Am pus acolo si un "stock". Realizezi ca i-ai dat o comanda si nu o variabila/un "stock" sau un "callback", nu?
  11. Pai, facand acest topic deja ai demonstrat ca te-ai suparat .Daca chiar nu te interesa, nu faceai acest topic (parerea mea) .
  12. [pawn]new VehicleNames[][] = { "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX", "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking", "Blista Compact", "Police Maverick", "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt", "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune", "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club", "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car", "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville", "Tiller", "Utility Trailer" }; stock GetVehicleName(vehicleid) { new String[64]; format(String,sizeof(String),"%s",VehicleNames[GetVehicleModel(vehicleid) - 400]); return String; }[/pawn] [pawn]public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { for(new i = 0; i < GetMaxPlayers(); i++) if(IsPlayerConnected(i) && !IsPlayerNPC(i)) { new string[256]; new vehicleid = GetPlayerVehicleID(i); format(string,sizeof string ,"{B7FF00}Marca: {00FFEE}%s", GetVehicleName(vehicleid)); } return 1; }[/pawn] N-am mai stat sa aranjez codul, pentru ca nu isi are rostul.Incearca sa vezi daca apare cu codul pe care ti l-am dat eu.
  13. Stiam eu ca lipseste ceva dar nu stiam ce.Multumesc ca mi-ai spus de greseala (chiar uitasem sa iau numele jucatorului care ucide).Am corectat postul de mai sus.
  14. Dupa avatar-ul lui observ sa ca este un copil de 10 - 12 ani.
  15. Incearca asta: [pawn] new string [ 64 ] kname [ 64 ] ; GetPlayerName ( killerid , kname , sizeof ( kname ) ) ; format ( string , sizeof ( string ) , "Ai fost omorat de %s." , kname ) ; SendClientMessage ( playerid , -1 , string ) ;[/pawn] Inlocuieste codul pe care il ai (care trimite jucatorului datele) cu ce ti-am dat mai sus.Scuze, am facut eu o greseala.
  16. Te-as ruga sa numai postezi cu "ms" dupa fiecare "replay' in acest topic .Cat despre mapa, mie chiar imi place, nu stiu de ce, dar imi place.Felicitari pentru munca depusa .
  17. Pai, tu ai ceva de genu' asta in script: [pawn]public OnPlayerDeath ( playerid , killerid , reason ) { // ... // ... // ... // ... // ... // ... // ... return ( true ) ; }[/pawn] Iar codul este acesta: [pawn] new string [ 64 ] ; if ( killerid != INVALID_PLAYER_ID ) { format ( string , sizeof ( string ) , "Ai fost omorat de %s." , killerid ) ; } SendClientMessage ( playerid , -1 , string ) ;[/pawn] Iar atunci cand le impreunezi, va arata cam asa: [pawn]public OnPlayerDeath ( playerid , killerid , reason ) { new string [ 64 ] ; if ( killerid != INVALID_PLAYER_ID ) { format ( string , sizeof ( string ) , "Ai fost omorat de %s." , killerid ) ; } SendClientMessage ( playerid , -1 , string ) ; // ... // ... // ... // ... // ... // ... // ... return ( true ) ; }[/pawn] EDIT: Vad ca ai rezolvat cu asta. Ca sa faci numele unui jucator rosu, incearca asta: [pawn] if(strcmp(cmd,"/mission",true)==0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(3.0,playerid,1381.0413,-1088.8511,27.3906) || PlayerToPoint(3.0,playerid,-1963.6067,437.5748,35.1719)) { if(MissionPlayable == 0) { SendClientMessage(playerid, COLOR_GREY, " No Mission has been Activated !"); return 1; } if(PlayerInfo[playerid][pMissionNr] == MissionPlayable) { SendClientMessage(playerid, COLOR_GREY, " You've already completed the Active Mission !"); return 1; } if(CP[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " You can`t take the mission, drop the car at the crane !"); return 1; } if(IsCollectingRubbish[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " You can`t take the mission, Collect the Rubbish!"); return 1; } RingTone[playerid] = 20; PlayerOnMission[playerid] = PlayMission[kNumber]; MissionCheckpoint[playerid] = 1; format(string, sizeof(string), "~w~Mission started: ~n~~r~%s", PlayMission[kTitle]); GameTextForPlayer(playerid, string, 5000, 3); SetPlayerColor(playerid, 0xFF0000FF); format(string, sizeof(string), "%s", PlayMission[kText1]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText2]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText3]); SendClientMessage(playerid, COLOR_YELLOW2, string); if(PlayMission[kToggle] == 1) { SetPlayerCheckpoint(playerid, PlayMission[kCP1][0], PlayMission[kCP1][1], PlayMission[kCP1][2], 8); } } else { SendClientMessage(playerid, COLOR_GREY, " You are not at the Bill Board !"); } } return 1; }[/pawn]
  18. Modul de joc se compileaza pe etape, sau ce vrei sa spui ? P.S: Nu ai "plugin"-urile necesare.
  19. Cum a spus si 97fresh, nu ai pus tu bine codul. Chiar inainte sa-l postez pe forum, l-am testat si a functionat perfect.
  20. Cel care iti da "crash", este acelasi mod de joc pe care l-ai avut si pe vechiul sistem de operare?
  21. [pawn]public OnPlayerDeath ( playerid , killerid , reason ) { new string [ 64 ] ; if ( killerid != INVALID_PLAYER_ID ) { format ( string , sizeof ( string ) , "Ai fost omorat de %s." , killerid ) ; } SendClientMessage ( playerid , -1 , string ) ; return ( true ) ; }[/pawn]
  22. Tu l-ai inclus dar nu ai fisierul boxex.inc in pawno/include.
  23. Ca un exemplu: [pawn]new Text3D:vehicle_text [ MAX_VEHICLES ] , vehicle_string [ 64 ] vehicle_test ; public OnFilterScriptInit ( ) { vehicle_test = CreateVehicle ( 510 , 0.0. , 0.0 , 15.0 , 5 , 0 , 120 ) ; format ( vehicle_string , sizeof ( vehicle_string ) , "%s" , GetVehicleName ( vehicleid ) ) ; vehicle_text [ vehicle_test ] = Create3DTextLabel ( vehicle_string , 0xFF0000AA , 0.0 , 0.0 , 0.0 , 50.0 , 0 , 1 ) ; Attach3DTextLabelToVehicle ( vehicle_text [ vehicle_test ] , vehicle_test , 0.0 , 0.0 , 2.0 ) ; return ( true ) ; } public OnFilterScriptExit ( ) { Delete3DTextLabel ( vehicle_text [ vehicle_test ] ) ; return ( true ) ; }[/pawn] Dar ca sa faci asta, ai nevoie de un "stock" care sa scoata numele vehiculelor din "id"-urile acestora: [pawn]new VehicleNames[][] = // by Tee. { "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX", "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking", "Blista Compact", "Police Maverick", "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt", "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune", "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club", "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car", "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville", "Tiller", "Utility Trailer" }; stock GetVehicleName(vehicleid) // by Tee. { new String[64]; format(String,sizeof(String),"%s",VehicleNames[GetVehicleModel(vehicleid) - 400]); return String; }[/pawn] Iar ca sa-l faci sa arate detinatorul masinii, ei bine, asta depinde de ce sistem de masini personale ai tu.
×
×
  • 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.