Dan_13
Membru-
Posts
51 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by Dan_13
-
eu am sv trucking si are ca arata ca iese e in include dar asta cu kick crash leave imi trb din gm din player disconnected
-
pai acuma nu da warninguri dar cind iese nui zice ca kick sau lost conection sau leave :| si +1 tiam dat cind miai rps 1 data
-
warninguri: [pawn]C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\MagicTruck.pwn(668) : warning 217: loose indentation C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\MagicTruck.pwn(671) : warning 225: unreachable code C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\MagicTruck.pwn(671) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings. [/pawn] liniile[pawn]668: return 1; 671: if (IsPlayerNPC(playerid)) return 1;[/pawn] si inca cv asa cu warninguri pornesc svu si cind iese cnv nici nu arata nmc la chat
-
mie imi trebuie doar la disconnect simi treb ca a iesit singur sau crash sau kick mai concret daca se poate ms si de astea de mai sus :)
-
salut,sa-mp.ro am nevoie de un pic de ajutor am vazut pe un server te trucking cind iese cnv dp sv scrie ca iesit sii ii zice ca i-a dat cick sau leaving sau lostconection si vr sami fac si io dar nu ma duce capul ,nici nush ce linii sa va pun va pun on player disconected sau cv de genu daca nu ziceti de ce aveti nevoie(poze): http://postimg.org/image/6um782doj http://postimg.org/image/57jwgjgu7 [pawn]// This callback gets called when a player disconnects from the server public OnPlayerDisconnect(playerid, reason) { // Always allow NPC's to logout without password or account if (IsPlayerNPC(playerid)) return 1; // Setup local variables new Name[24], Msg[128], HouseID; // Get the playername GetPlayerName(playerid, Name, sizeof(Name)); // Stop spectate mode for all players who are spectating this player for (new i; i < MAX_PLAYERS; i++) if (IsPlayerConnected(i)) // Check if the player is connected if (GetPlayerState(i) == PLAYER_STATE_SPECTATING) // Check if this player is spectating somebody if (APlayerData[spectateID] == playerid) // Check if this player is spectating me { TogglePlayerSpectating(i, 0); // Turn off spectate-mode APlayerData[spectateID] = INVALID_PLAYER_ID; APlayerData[spectateType] = ADMIN_SPEC_TYPE_NONE; SendClientMessage(i, 0xFFFFFFFF, "{FF0000}Target player has logged off, ending spectate mode"); } // Send a message to all players to let them know somebody left the server format(Msg, 128, TXT_PlayerLeftServer, Name, playerid); SendClientMessageToAll(0xFFFFFFFF, Msg); // If the player entered a proper password (the player has an account) if (strlen(APlayerData[playerid][PlayerPassword]) != 0) { // Save the player data and his houses PlayerFile_Save(playerid); }[/pawn]
-
Pai il bbag pe alui eminem din gmu pro gaming dar ce variabila pun ca daca un ai dat testu sa un poti conduce (acm sunet pe mob un pot sati dau scriptu
-
pai da dar nam sistem de dmv in gm
-
pai acuma sa compilat dar imi da 1 erorr Gireadea nush de la ce [pawn]C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1974) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. [/pawn] asta e linia: [pawn]if (AVehicleData[vehicleid][VariabilaDumneavostra] > 0)[/pawn] stii nu m-am gindit la cv ca daca fac asta o sa dau examen dar fs de examen nu are restrictia de a intra in masina si de aia treb sa fac sau sa pun sistemd e dmv in gm ca el automat dupa ce dau examen sa iti poata da voie in masina dar asa tot nu voi putea intra ...mda...nu m-am gindit la asa cv ma poti ajuta si cu sistem de dmv in gm???
-
pai si in loc de variablia dvs ce pun cam zis ca nam sistem de dmv in gm o sa pun fs dar imi trb sa numi dea voie sa intru in masina
-
asteas liniile: [pawn]if (AVehicleData[vehicleid][VariabilaDumneavostra] > 0) { new dmvdialog[464] = "Nu detii permis \n"); strcat(dmvdialog, "Asadar nu poti conduce.\n"); strcat(dmvdialog, "Dute la checkpoint-ul rosu pentru a-l da.\n"); ShowPlayerDialog(playerid, 127, DIALOG_STYLE_MSGBOX, "DMV", szDialog, "OK", ""); } [/pawn]
-
nimeni de 2 zile?
-
[pawn]C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1974) : error 029: invalid expression, assumed zero C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1976) : error 001: expected token: ";", but found ")" C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1976) : error 029: invalid expression, assumed zero C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1976) : warning 215: expression has no effect C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : error 029: invalid expression, assumed zero C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : warning 215: expression has no effect C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : warning 215: expression has no effect C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : error 001: expected token: ";", but found ")" C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : error 029: invalid expression, assumed zero C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors. [/pawn] Aaa,si inca cv nu am bagat in gm scriptu pt dmv il pun fs mie imi trebuie cind intri in masina sa te dea jos si sati apara dialogul ca nai permis poate trebuie si de la onplayerexitvehicle cv: [pawn]public OnPlayerExitVehicle(playerid, vehicleid) { // Setup local variables new engine, lights, alarm, doors, bonnet, boot, objective; // Check if the player is the driver of the vehicle if (GetPlayerVehicleSeat(playerid) == 0) { // Turn off the lights and engine GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, 0, 0, alarm, doors, bonnet, boot, objective); }[/pawn]
-
cred ca e de la aia unde ai sters tu cu galben vezi ca acolo scrie BUD v1.0 sau nush blabla de al aia e
-
salut,recent am vazut pe un server de trucking examen auto ma rog pot baga fs dar imi treb cind te urci in masina sa te dea jos si sa scrie la chat nu ai permis si cind intri dupa ce iti alegi jobu sati arate un dialog cu msg_box Nu ai permis: http://postimg.org/image/g2byk1lkv/ Dialog Msg Box: http://postimg.org/image/8a7uyi0tz/ ONplayerEnterVehicle [pawn]// This callback gets called whenever a player enters a vehicle public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { // Setup local variables new engine, lights, alarm, doors, bonnet, boot, objective; // Check if the vehicle has fuel if (AVehicleData[vehicleid][Fuel] > 0) { // Start the engine and turn on the lights GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective); } // Store the player's current location and interior-id, otherwise anti-airbreak hack code could kick you GetPlayerPos(playerid, APlayerData[playerid][PreviousX], APlayerData[playerid][PreviousY], APlayerData[playerid][PreviousZ]); APlayerData[playerid][PreviousInt] = GetPlayerInterior(playerid); return 1; }[/pawn] cu dialogu cu msgbox cred ca ma descurc
-
de unde si ce sa sterg si lina la care imi da eroor in gm e doar o}
-
salut sa-mp.ro am am cmd /fuel pe server si am decis sa fac cmd fuelall dar imi da 1 warning dar nu ma pricep va dau comanda /fuel si /fuelall pe care le am si lina in gm la care imi da warning :C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(2565) : warning 203: symbol is never used: "fuelall" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. Comanda:/fuel [pawn]// Refuel the player's vehicle COMMAND:fuel(playerid, params[]) { // Setup local variables new vID; // Send the command to all admins so they can see it SendAdminText(playerid, "/fuel", 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] >= 1) { // Check if the player is inside a vehicle if (IsPlayerInAnyVehicle(playerid)) { // Get the vehicleid vID = GetPlayerVehicleID(playerid); // Refuel the vehicle AVehicleData[vID][Fuel] = MaxFuel; // Let the player know about it SendClientMessage(playerid, 0x00FF00FF, "Your vehicle is refuelled"); } else SendClientMessage(playerid, 0x00FF00FF, "You're not driving a vehicle"); } else return 0; } else return 0; // Let the server know that this was a valid command return 1; }[/pawn] Comanda:/fuelall [pawn]COMMAN:fuelall(playerid, params[]) { //Trimite comandata la toti adminii sunt online SendAdminText(playerid, "/fuelall", parms); //Daca playerul este logat if (APlayerData[playerid][LoggedIn]==true) { //Daca adminul are mai sus de levelu 4 if (APlayerData[playerid][PlayerLevel] >=4) { // Check if the player is inside a vehicle if (IsPlayerInAnyVehicle(playerid)) { // Get the vehicleid vID = GetPlayerVehicleID(playerid); // Refuel the vehicle AVehicleData[vID][Fuel] = MaxFuel; // Let the player know about it SendClientMessage(playerid, 0x00FF00FF, "Your vehicle is refuelled"); } else SendClientMessage(playerid, 0x00FF00FF, "You're not driving a vehicle"); } else return 0; } else return 0; // Let the server know that this was a valid command return 1; }[/pawn]
-
Salut,samp.ro am si io intrebare ,cum sa fac un cd cu windows botabil adica cind il instalez sa pot formata PCU am incercat mai multe metode si nu mia iesit va rog daca stiti cum ajutatima daca e cu nero datimi unu cu licenzie dar as vr sa nu fie nere in fine zicetimi va rog
-
Nu l-am compilat era de la hold am bagat in gm simi dadea eroori dar am definit playerid si se compila usor si de aia si am scos sistemu de hold din gm si merge acuma am luat fsu de hold a lui Gireadea MS de ajutor T/C
-
ms mia-i fost tare de ajutor gata mia iesit
-
Problema a parut dupa ce am pus cmd hold si in gm componente al comandei si acuma cind dau sal startez starteaza are si gm .amx [pawn][16:12:05] [16:12:05] Server Plugins [16:12:05] -------------- [16:12:05] Loading plugin: sscanf [16:12:05] [16:12:05] =============================== [16:12:05] sscanf plugin loaded. [16:12:05] © 2009 Alex "Y_Less" Cole [16:12:05] 0.3d-R2 500 Players "dnee" [16:12:05] =============================== [16:12:05] Loaded. [16:12:05] Loading plugin: streamer [16:12:05] *** Streamer Plugin v2.6.1 by Incognito loaded *** [16:12:05] Loaded. [16:12:05] Loaded 2 plugins. [16:12:05] [16:12:05] Ban list [16:12:05] -------- [16:12:05] Loaded: samp.ban [16:12:05] [16:12:05] [16:12:05] Filterscripts [16:12:05] --------------- [16:12:05] Loading filterscript 'mape.amx'... [16:12:05] Loading filterscript 'radio.amx'... [16:12:05] -------------------------------------- [16:12:05] DuReX's Radio Filterscript v1.0 loaded! [16:12:05] -------------------------------------- [16:12:05] Loading filterscript 'Ceas.amx'... [16:12:05] Loading filterscript 'GATES.amx'... [16:12:05] Loading filterscript '5.amx'... [16:12:05] Loading filterscript '112.amx'... [16:12:05] Loading filterscript 'zones.amx'... [16:12:05] -------------------------------------- [16:12:05] Zone System 0.1 by RoamPT [16:12:05] -------------------------------------- [16:12:05] Loading filterscript 'anims.amx'... [16:12:05] Loading filterscript 'vote.amx'... [16:12:05] Loading filterscript 'anti.amx'... [16:12:05] Loaded 10 filterscripts. [16:12:05] Script[gamemodes/PPC_Trucking.amx]: Run time error 17: "Invalid/unsupported P-code file format" [16:12:05] Failed to load 'gamemodes/PPC_Trucking.amx' script. [16:12:05] Number of vehicle models: 0 [16:12:15] --- Server Shutting Down. [/pawn]
-
Salut,as vrea sa fac un txt draw dar nush daca esti posibil sa fac asa txd draw uitati o poza daca ma poate ajt cnv http://postimg.org/image/bbyn2qewn/ eu cred ca este imposibil dar daca cnv stie cum ms de ajutor +1
-
Salut am vazut recent pe un server de trucking cv care nush cum sa fac adica stiu dar mie imi ese alt fel uitativa cum are el:(e msg_box) http://postimg.org/image/rdrzbedh9/ [pawn]COMMAND:assist(playerid, params[]) { // Setup local variables new bool:AssistOnline = false, Msg[128], Name[24]; // Send the command to all admins so they can see it SendAdminText(playerid, "/assist", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { // Get the player's name GetPlayerName(playerid, Name, sizeof(Name)); // Preset the message that needs to be sent to assistance players format(Msg, 128, "{00FF00}Player {FFFF00}%s{00FF00} needs assistance, go help him", Name); // Check if there is at least one assistance player online for (new i; i < MAX_PLAYERS; i++) { // Check if this player is connected if (IsPlayerConnected(i)) { // Check if this player is assistance class if (APlayerData[PlayerClass] == ClassAssistance) { // Set the flag to indicate that at least one assistance player is online AssistOnline = true; // Send the assistance player a message to inform him who needs assistance SendClientMessage(i, 0xFFFFFFFF, Msg); } } } // Check if there is at least one assistance player online if (AssistOnline == true) { // Set yourself as "AssistanceNeeded" APlayerData[playerid][AssistanceNeeded] = true; // Let the player know he called for assistance SendClientMessage(playerid, 0xFFFFFFFF, "{00FF00}You've called for assistance"); } else // No assistance is online { // Check if the player is the driver of a vehicle if (GetPlayerVehicleSeat(playerid) == 0) { // Fully repair the vehicle (damage value and bodywork) RepairVehicle(GetPlayerVehicleID(playerid)); // Also re-fuel the vehicle AVehicleData[GetPlayerVehicleID(playerid)][Fuel] = MaxFuel; // Let the player pay for the repairs and refuel (default $2000) RewardPlayer(playerid, -2000, 0); // Let the player know he spent $2000 for auto-repair because there were no assistance players online SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Tiau fost luat $2000 pt ca nu e nimeni la assist "); } } } else return 0;[/pawn]
-
sau incearca sa il definesti #define SetObjectMaterialText
-
// This function checks if the player is speeding near a speedcamera CheckPlayerSpeeding(playerid) { // Setup local variables new Name[24], Msg[128]; // Check if the player hasn't been caught speeding recently if (APlayerData[playerid][PlayerCaughtSpeeding] == 0) { // Loop through all speedcameras for (new CamID; CamID < MAX_CAMERAS; CamID++) { // Check if this camera has been created if (ACameras[CamID][CamSpeed] != 0) { // Check if the player is the driver of the vehicle if (GetPlayerVehicleSeat(playerid) == 0) { // Check if the player's speed is greater than the speed allowed by this camera (no need to process a distance-check if not speeding) if (APlayerData[playerid][PlayerSpeed] > ACameras[CamID][CamSpeed]) { // Check if the player is near the camera if (IsPlayerInRangeOfPoint(playerid, 50.0, ACameras[CamID][CamX], ACameras[CamID][CamY], ACameras[CamID][CamZ])) { // Prevent the player being caught multiple times by the same speed-camera APlayerData[playerid][PlayerCaughtSpeeding] = 20; // Increase the wanted-level of this player by 1 star SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1); // Let the player know he's been caught speeding SendClientMessage(playerid, 0xFFFFFFFF, TXT_PlayerCaughtSpeeding); // Get the name of the player GetPlayerName(playerid, Name, sizeof(Name)); // Also inform all police players that this player is caught speeding format(Msg, 128, "{00FF00}Player {FFFF00}%s{00FF00} is caught speeding, pursue and fine him", Name); Police_SendMessage(Msg); } } } } } } else // If the player has been caught before, reduce the value until it's 0 again, then he can be caught again APlayerData[playerid][PlayerCaughtSpeeding]--; } ASa ceva alt cv nam gasit
