Jump to content

vasy

Membru
  • Posts

    196
  • Joined

  • Last visited

    Never

Everything posted by vasy

  1. vasy

    ceckpoint

    Buna samp.ro am si eu o tinrebare cum as putea sa pun un sentmesage pentru tot serverul in care sa arate cat ia luat unui player sa ajunga dintrun ceckpoint in altul
  2. un alt termen pentru "caption"
  3. nu cred ca are vro legatura cu lagul am incercat in mai multe zile si tot nu imi apare si am incercat si chestia aia cu setcamerapos la onplyaerconnect si nu merge da sa apara adica se blocheaza un pic dar nu apare la fel si dialogul si nu nu este in fs ci in gm
  4. Am facut si eu un dialog dar nu imi apare :| [pawn]ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{FF0000}Romania {FFFF00}Fast {0000FF}Difference", "Salut, vrei sa asculti radio?", "Da", "Nu");[/pawn] prima parte si cu response [pawn]if(dialogid == 1) { if(response) { PlayAudioStreamForPlayer(playerid, "http://www.radiodiz.com/livediz.m3u"); ApplyAnimation(playerid, "DANCING", "dnce_M_a", 4.1, 1, 0, 0, 1, 1); SendClientMessage(playerid, 0x382930FF, "Acum omul tau danseaza pe muzica ta preferata"); } else { SendClientMessage(playerid, 0x382930FF, "Ai ales ce-a de a doua optiune, daca vrei radio tasteaza /radio"); } }[/pawn] si nu merge :|
  5. vasy

    4 errors

    nu ai pus , unde trebuia sau ai pus unde nu trebuia
  6. vasy

    Warning-uri

    pai daca tia folst lene sa pui liniile in ordine trebuiesc puse toate sub return 1
  7. inca una si te las ) [pawn]C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(7430) : warning 219: local variable "vehicleid" shadows a variable at a preceding leve[/pawn] si sa stii ca iti multumesc pentru tot ajutorul acordat si timpul pierdut cu mine
  8. tot imi spune sa il definesc stiu pun #define OnPlayerEnterVehicle si mai ce simpliu C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(6387) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(7421) : error 021: symbol already defined: "OnPlayerEnterVehicle"
  9. C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(6658) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(6659) : error 017: undefined symbol "GetVehicleName" C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(6658) : warning 204: symbol is assigned a value that is never used: "vehicleid" C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(7401) : error 021: symbol already defined: "OnPlayerEnterVehicle" niste erori :D
  10. for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p)) { new vehicleid = GetPlayerVehicleID(p); new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id; if(vehicleid) { new string[512], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth; GetVehicleVelocity(vehicleid, X, Y, Z); PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100; GetVehicleHealth(vehicleid,vhealth); format(string,sizeof string ,"{B7FF00}Marca: {00FFEE}%s\n{B7FF00}Rezistenta: {00FFEE}%.2f\n{B7FF00}Viteza: {00FFEE}%i km/h\n{B7FF00}Combustibil: {00FFEE}%i %", VehicleName[GetVehicleModel(vehicleid)-400], vhealth, floatround(PointToPoint, floatround_floor)); Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0); DeletePlayer3DTextLabel(p, speedo3Dtext); speedo3Dtext = CreatePlayer3DTextLabel(p, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, vehicleid); } else if(p) { DeletePlayer3DTextLabel(p, speedo3Dtext); } } acum ce mai e gresit :|
  11. for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p)) { new string[256]; new vehicleid = GetPlayerVehicleID(p); format(string,sizeof string ,"{B7FF00}Marca: {00FFEE}%s", VehicleName[GetVehicleModel(vehicleid)-400]); } am aceasta functie nu imi da nici o erroare nici un warnig dar nu imi apare de ce :| new VehicleName[212][] = { "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 1", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer 2", "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", "Boxvillde", "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 LA", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster A", "Monster B", "Uranus", "Jester", "Sultan", "Stratum", "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 3", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club", "Freight Carriage", "Trailer 4", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car (LSPD)", "Police Car (SFPD)", "Police Car (LVPD)", "Police Ranger", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage Trailer A", "Luggage Trailer B", "Stairs", "Boxville", "Tiller", "Utility Trailer" }; cu acest dialog de masini
  12. vasy

    pawno.

    este de la server cred :-?
  13. vasy

    marca la masina

    eu vreau sa il pun in gm as putea?
  14. cum as putea face sa imi arate marca si detinatorul masini ceva gen cum este in imagine
  15. [pawn]// This function processes anti-hack stuff stock AntiHack(playerid) { // Setup local variables new Float:Armour; // Skip checking for hacks used by the player if he was reported by the Anti-Hack system already if (APlayerData[playerid][AutoReportTime] > 0) { // Reduce the time so the player can be reported again soon if he doesn't stop using hacks APlayerData[playerid][AutoReportTime]--; // Exit the function, this skips the hack-checks until the AutoReportTime has reached 0 // Otherwise the player is reported every half a second until he stops using hacks return 1; } // Check if a filterscript gave some money (or took it) to the player if (GetPVarInt(playerid, "PVarMoney") != 0) { // Add the money to the players account APlayerData[playerid][PlayerMoney] = APlayerData[playerid][PlayerMoney] + GetPVarInt(playerid, "PVarMoney"); // Clear the PVar SetPVarInt(playerid, "PVarMoney", 0); } if (GetPVarInt(playerid, "PVarScore") != 0) { // Add the money to the players account APlayerData[playerid][PlayerScore] = APlayerData[playerid][PlayerScore] + GetPVarInt(playerid, "PVarScore"); // Clear the PVar SetPVarInt(playerid, "PVarScore", 0); } // Reset the player's money and set it to the stored value in the player's account (do the same for scorepoints) ResetPlayerMoney(playerid); GivePlayerMoney(playerid, APlayerData[playerid][PlayerMoney]); SetPlayerScore(playerid, APlayerData[playerid][PlayerScore]); // Limit the cash that the player can have if (APlayerData[playerid][PlayerMoney] > 999000000) APlayerData[playerid][PlayerMoney] = 999000000; // Limit the cash that the player can have below 0 if (APlayerData[playerid][PlayerMoney] < -1000000) APlayerData[playerid][PlayerMoney] = -1000000; // Port anyone out of the area who is not an admin and inside the area 69 Player_PortOutAdminZone(playerid, 106.0, 1805.0, -50.0, 285.0, 1940.0, 40.0, 15.0, 1732.0, 25.0); // Check if the player got any armour (= health-hack) GetPlayerArmour(playerid, Armour); // Send an automated report to the admins so they're informed about it and can take action if (Armour > 1.0) SendReportToAdmins(playerid, "Health-hack", true); // Check if the speed is higher than 300 (kick player if it is) // Send an automated report to the admins so they're informed about it and can take action if (APlayerData[playerid][PlayerSpeed] > 400) SendReportToAdmins(playerid, "Speed-hack", true); // Check if the player is not allowed to have a jetpack (admins lvl 3 and higher can use /fly, so they will be excluded) if (APlayerData[playerid][PlayerLevel] < 0) { // Check if the player is using a jetpack // Send an automated report to the admins so they're informed about it and can take action if (GetPlayerSpecialAction(playerid) == 2) SendReportToAdmins(playerid, "Jetpack-hack", true); } // Detect airbreak hack if (GetPlayerVehicleSeat(playerid) == 0) { // Check if the player is nearly standing still if (APlayerData[playerid][PlayerSpeed] < 10) { // Check if the player switched interior-id's if (GetPlayerInterior(playerid) != APlayerData[playerid][PreviousInt]) { // Check if the new interior is the normal world or any mod-shop switch (GetPlayerInterior(playerid)) { case 0, 1, 2, 3: // Check interiors 0, 1, 2 and 3 (normal world and all mod-shops) { // Store the player's current location and interior-id for the next iteration GetPlayerPos(playerid, APlayerData[playerid][PreviousX], APlayerData[playerid][PreviousY], APlayerData[playerid][PreviousZ]); APlayerData[playerid][PreviousInt] = GetPlayerInterior(playerid); // Exit the function return 1; } } } // Check if the player is still near the same place he was half a second ago if (IsPlayerInRangeOfPoint(playerid, 7.5, APlayerData[playerid][PreviousX], APlayerData[playerid][PreviousY], APlayerData[playerid][PreviousZ])) { } else // Send an automated report to the admins so they're informed about it and can take action SendReportToAdmins(playerid, "Airbreak-hack", true); } } // Store the player's current location and interior-id for the next iteration GetPlayerPos(playerid, APlayerData[playerid][PreviousX], APlayerData[playerid][PreviousY], APlayerData[playerid][PreviousZ]); APlayerData[playerid][PreviousInt] = GetPlayerInterior(playerid); return 1; }[/pawn]
  16. [pawn]CMD:cadou(playerid, params []) { // Send all players a message to inform them that all players have been healed new string[256]; new nume[MAX_PLAYER_NAME]; GetPlayerName( playerid, nume, MAX_PLAYER_NAME ); format( string, sizeof string , "{515151}Adminul {FFFFFF}%s[%d] {515151}a dat bani si score la toata lumea", nume, playerid); SendClientMessageToAll(0x00FF00FF, string); for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) { GivePlayerMoney(i, 5000000); SetPlayerScore(i, 5); } return 1; }[/pawn] comanda dar daca dau da bani si apoi dispar adica ii da bani dar nu raman scad inapoi
  17. Cum as putea sa fac o comanda pe zcmd cand scriu de exemplu /cadou sa dea la tot sv 40kk si 5 score nu ca cer comanda mura-n gura (nu as zice nu daca as primio asa) dar puteti sa imi dati si tutoriale sa ma ajutat sa o fac p.s nu vreau sa ia din bani mei cand scriu acest lucru
  18. vasy

    comanda zcmd

    am rezolvat eu ai pus tu [pawn]COMMAND:wantedall(playerid, params[])[/pawn] in loc de [pawn]COMMAND:wantedall(playerid, params [])[/pawn] am rezolvat multumesc dati tc p.s ai +1 de la mine
  19. vasy

    comanda zcmd

    [pawn]C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(1331) : warning 219: local variable "Stars" shadows a variable at a preceding level C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(5508) : error 001: expected token: ")", but found "&" C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(5508) : error 001: expected token: ";", but found "&" C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(5513) : error 010: invalid function or declaration C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(5513) : error 021: symbol already defined: "SendAdminText" C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(5516) : error 010: invalid function or declaration C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(5518) : error 010: invalid function or declaration C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(5520) : error 010: invalid function or declaration C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(5521) : error 010: invalid function or declaration C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(5527) : error 010: invalid function or declaration[/pawn] mura-n gura da nu merge oricum apreciez, uite si ce errori mia dat
  20. vasy

    comanda zcmd

    cum as putea sa fac aceasta comanda [pawn]COMMAND:wanted(playerid, params[]) { new OtherPlayer, Stars; // Send the command to all admins so they can see it SendAdminText(playerid, "/wanted", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { // Check if the player's admin-level is at least 2 if (APlayerData[playerid][PlayerLevel] >= 3) { if (sscanf(params, "ui", OtherPlayer, Stars)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/wanted <OtherPlayer> <Stars>\""); else if (IsPlayerConnected(OtherPlayer)) // If the player is a valid playerid (he's connected) SetPlayerWantedLevel(OtherPlayer, Stars); else SendClientMessage(playerid, 0xFF0000FF, "{515151}Jucatorul nu este online"); } else return 0; } else return 0; // Let the server know that this was a valid command return 1; } [/pawn] sa o fac sa nu mai fie pe playerid sa fie all, adica cand scriu /wanted sa ia stelele la tot serverul
  21. [pawn]COMMAND:boat(playerid, params[]) { // Send the command to all admins so they can see it SendAdminText(playerid, "/boat", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { // Check if the player's admin-level is at least 1 if ((APlayerData[playerid][PlayerLevel] >= 2) || (APlayerData[playerid][VPlayerLevel] >= 2)) { // Make sure the player isn't inside a vehicle if (GetPlayerVehicleID(playerid) == 0) { // Ask which motorcycle the player wants to have ShowPlayerDialog(playerid, DialogBoat, DIALOG_STYLE_LIST, "Choose a boat:", "Coastguard\nDinghy\nJetmax\nLaunch\nMarquis\nPredator\nReefer\nSpeeder\nSquallo\nTropic", "Spawn", "Cancel"); // Let the server know that this was a valid command return 1; } } else return 0; } else return 0; // Let the server know that this was a valid command return 1; }[/pawn] comanda mea in fine trebuie sa o mai modifici tu
  22. vasy

    Casa

    9/10 gardul si unele obiecteies afara
×
×
  • 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.