Jump to content

Flavius88

Membru
  • Posts

    16
  • Joined

  • Last visited

    Never

Flavius88's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Flavius88

    Moduri!

    Buna, imi poate explica cineva cum e treaba cu masinile modate de pe servere? Se presupune ca nu merge sa le vada si ceilalti playeri daca nu le-au instalat si ei...am intrat ieri pe un server TDM si erau vehicule modate,le puteam vedea bn dar nu am instalat nimic...
  2. Am reusit sa il fac sa mearga, am schimbat semnul pt gloante. Din if(weaponid[1] && weaponammo[1] > 0) in if(weaponid[1] && weaponammo[1] <99999). Ms!
  3. Am sistemul de arme infinite in GM.Iar sistemele pentru armedbody merge numai pentru armele cu gloante normale (1-9999),numai acelea se vad.Cum fac sa se vada si pentru armele cu gloante infinite?
  4. [pawn]#include <a_samp> static armedbody_pTick[MAX_PLAYERS]; public OnFilterScriptInit(){ printf("====================================================================="); printf("This is a part of a OpenGTA subject, visit opengta.org for more info."); printf("FilterScript Name: Armed body"); printf("Description:Attatch weapond to player's body"); printf("Author:yezizhu"); printf("Special thanks:Double-O-Seven, Brian."); printf("Contact author: [email protected]"); printf("====================================================================="); return true; } public OnFilterScriptExit(){ return true; } public OnPlayerUpdate(playerid){ if(GetTickCount() - armedbody_pTick[playerid] > 113){ //prefix check itter new weaponid[13],weaponammo[13],pArmedWeapon; pArmedWeapon = GetPlayerWeapon(playerid); GetPlayerWeaponData(playerid,1,weaponid[1],weaponammo[1]); GetPlayerWeaponData(playerid,2,weaponid[2],weaponammo[2]); GetPlayerWeaponData(playerid,4,weaponid[4],weaponammo[4]); GetPlayerWeaponData(playerid,5,weaponid[5],weaponammo[5]); GetPlayerWeaponData(playerid,7,weaponid[7],weaponammo[7]); if(weaponid[1] && weaponammo[1] > 0){ if(pArmedWeapon != weaponid[1]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,0)){ SetPlayerAttachedObject(playerid,0,GetWeaponModel(weaponid[1]),1, 0.199999, -0.139999, 0.030000, 0.500007, -115.000000, 0.000000, 1.000000, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,0)){ RemovePlayerAttachedObject(playerid,0); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,0)){ RemovePlayerAttachedObject(playerid,0); } if(weaponid[2] && weaponammo[2] > 0){ if(pArmedWeapon != weaponid[2]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,1)){ SetPlayerAttachedObject(playerid,1,GetWeaponModel(weaponid[2]),8, -0.079999, -0.039999, 0.109999, -90.100006, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,1)){ RemovePlayerAttachedObject(playerid,1); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,1)){ RemovePlayerAttachedObject(playerid,1); } if(weaponid[4] && weaponammo[4] > 0){ if(pArmedWeapon != weaponid[4]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,2)){ SetPlayerAttachedObject(playerid,2,GetWeaponModel(weaponid[4]),7, 0.000000, -0.100000, -0.080000, -95.000000, -10.000000, 0.000000, 1.000000, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,2)){ RemovePlayerAttachedObject(playerid,2); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,2)){ RemovePlayerAttachedObject(playerid,2); } if(weaponid[5] && weaponammo[5] > 0){ if(pArmedWeapon != weaponid[5]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,3)){ SetPlayerAttachedObject(playerid,3,GetWeaponModel(weaponid[5]),1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,3)){ RemovePlayerAttachedObject(playerid,3); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,3)){ RemovePlayerAttachedObject(playerid,3); } if(weaponid[7] && weaponammo[7] > 0){ if(pArmedWeapon != weaponid[7]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,4)){ SetPlayerAttachedObject(playerid,4,GetWeaponModel(weaponid[7]),1,-0.100000, 0.000000, -0.100000, 84.399932, 112.000000, 10.000000, 1.099999, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,4)){ RemovePlayerAttachedObject(playerid,4); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,4)){ RemovePlayerAttachedObject(playerid,4); } armedbody_pTick[playerid] = GetTickCount(); } return true; } //by Double-O-Seven stock GetWeaponModel(weaponid) { switch(weaponid) { case 1: return 331; case 2..8: return weaponid+331; case 9: return 341; case 10..15: return weaponid+311; case 16..18: return weaponid+326; case 22..29: return weaponid+324; case 30,31: return weaponid+325; case 32: return 372; case 33..45: return weaponid+324; case 46: return 371; } return 0; }[/pawn] Am inlocuit acel fs cu acesta, aici nu apar deloc armele dar cred ca functioneaza, in trecut stiu ca am avut aceeasi problema fiindca trebuia sa modific dupa armele infinite(pt acelea vreau sa il fac). Unde trb sa modific sa mearga pt armele infinite?
  5. Nick:Flavius88 Problema:Armedbody filterscript Erori/Warning:- Lini/Script: [pawn]#include <a_samp> #include <JunkBuster> #define ARMEDBODY_USE_HEAVY_WEAPON (false) static armedbody_pTick[MAX_PLAYERS]; public OnPlayerUpdate(playerid){ if(GetTickCount() - armedbody_pTick[playerid] > 113){ //prefix check itter new weaponid[13],weaponammo[13],pArmedWeapon; pArmedWeapon = GetPlayerWeapon(playerid); GetPlayerWeaponData(playerid,1,weaponid[1],weaponammo[1]); GetPlayerWeaponData(playerid,2,weaponid[2],weaponammo[2]); GetPlayerWeaponData(playerid,4,weaponid[4],weaponammo[4]); GetPlayerWeaponData(playerid,5,weaponid[5],weaponammo[5]); #if ARMEDBODY_USE_HEAVY_WEAPON GetPlayerWeaponData(playerid,7,weaponid[7],weaponammo[7]); #endif if(weaponid[1] > 0){ if(pArmedWeapon != weaponid[1]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,0)){ SetPVarInt(playerid, "arma2", SetPlayerAttachedObject(playerid,0,GetWeaponModel(weaponid[1]),1, 0.199999, -0.139999, 0.030000, 0.500007, -115.000000, 0.000000, 1.000000, 1.000000, 1.000000)); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,0)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma1"),0); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,0)){ RemovePlayerAttachedObject(playerid,0); } if(weaponid[2] > 0){ if(pArmedWeapon != weaponid[2]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,1)){ SetPVarInt(playerid, "arma2", SetPlayerAttachedObject(playerid,1,GetWeaponModel(weaponid[2]),8, -0.079999, -0.039999, 0.109999, -90.100006, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000)); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,1)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma2"),1); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,1)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma2"),1); } if(weaponid[4] > 0){ if(pArmedWeapon != weaponid[4]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,2)){ SetPVarInt(playerid, "arma3", SetPlayerAttachedObject(playerid,2,GetWeaponModel(weaponid[4]),7, 0.000000, -0.100000, -0.080000, -95.000000, -10.000000, 0.000000, 1.000000, 1.000000, 1.000000)); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,2)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma3"),2); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,2)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma3"),2); } if(weaponid[5] > 0){ if(pArmedWeapon != weaponid[5]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,3)){ SetPVarInt(playerid, "arma4", SetPlayerAttachedObject(playerid,3,GetWeaponModel(weaponid[5]),1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000)); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,3)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma4"),3); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,3)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma4"),3); } #if ARMEDBODY_USE_HEAVY_WEAPON if(weaponid[7] > 0){ if(pArmedWeapon != weaponid[7]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,4)){ SetPlayerAttachedObject(playerid,4,GetWeaponModel(weaponid[7]),1,-0.100000, 0.000000, -0.100000, 84.399932, 112.000000, 10.000000, 1.099999, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,4)){ RemovePlayerAttachedObject(playerid,4); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,4)){ RemovePlayerAttachedObject(playerid,4); } #endif armedbody_pTick[playerid] = GetTickCount(); } return true; } //by Double-O-Seven stock GetWeaponModel(weaponid) { switch(weaponid) { case 1: return 331; case 2..8: return weaponid+331; case 9: return 341; case 10..15: return weaponid+311; case 16..18: return weaponid+326; case 22..29: return weaponid+324; case 30,31: return weaponid+325; case 32: return 372; case 33..45: return weaponid+324; case 46: return 371; } return 0; }[/pawn] Ai incercat sa rezolvi singur ?:Da Scriptul functioneaza bine,armele se vad cum trebuie pe corp.Problema este ca atunci cand selectez o arma ea imi apare in mana,normal,dar nu dispare de pe corp.
  6. Problema rezolvata!MS! Topic closed.
  7. Nick:Flavius88 Problema:Masini personale Erori / warnings:- Lini/script: [pawn] if(strcmp(cmd, "/adeletecar", true) == 0) { if(PlayerInfo[playerid][pAdmin] == 1339) { CarInfo[idcar][cOwned] = 0; CarInfo[idcar][cModel] = 0; CarInfo[idcar][cColorOne] = 0; CarInfo[idcar][cColorTwo] = 0; CarInfo[idcar][cLocationx] = 0; CarInfo[idcar][cLocationy] = 0; CarInfo[idcar][cLocationz] = 0; CarInfo[idcar][cAngle] = 0; strmid(CarInfo[idcar][cOwner], "No-one", 0, strlen("No-one"), 999); format(CarInfo[idcar][cDescription], 32, "0"); DestroyVehicle(idcar); OnCarUpdate(); SavePlayerData(playerid); } } if(strcmp(cmd, "/acreatecar", true) == 0) { if(PlayerInfo[playerid][pAdmin] == 1339) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2]"); return 1; } new car; car = strval(tmp); if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_WHITE, " Vehicle Number can't be below 400 or above 611 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 252) { SendClientMessage(playerid, COLOR_WHITE, " Color Number can't be below 0 or above 252 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 252) { SendClientMessage(playerid, COLOR_WHITE, " Color Number can't be below 0 or above 252 !"); return 1; } new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new thiscar = CreateVehicle(car,X,Y,Z,1,color1,color2,99999999); CarInfo[thiscar][cOwned] = 0; CarInfo[thiscar][cModel] = car; CarInfo[thiscar][cColorOne] = color1; CarInfo[thiscar][cColorTwo] = color2; CarInfo[thiscar][cLocationx] = X; CarInfo[thiscar][cLocationy] = Y; CarInfo[thiscar][cLocationz] = Z; CarInfo[thiscar][cAngle] = 1; PutPlayerInVehicle(playerid,thiscar,0); strmid(CarInfo[vehid][cOwner], "No-one", 0, strlen("No-one"), 999); format(CarInfo[thiscar][cDescription], 32, "%s",vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); format(string, sizeof(string), "The car %s [%d] has been created",CarInfo[thiscar][cDescription],thiscar); SendClientMessage(playerid, COLOR_BLUE, string); ShowPlayerDialog(playerid,DIALOGIDSETOWNER,DIALOG_STYLE_INPUT,"{E0941B}Vehicle owner","Write playerid/PartOfName \nto make owner this car:","Enter","Close"); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); return 1; } } if(strcmp(cmd, "/dveh", true) == 0 || strcmp(cmd, "/dvehicle", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pPcarkey] != -1) { ShowPlayerDialog(playerid,DIALOGDVEH,DIALOG_STYLE_LIST," Donater vehicle", "Change vehicle model \nChange vehicle colors \nSave the position vehicle \nRespawn the vehicle","Enter","Close"); return 1; } else SendClientMessage(playerid, COLOR_GREY, " Numai donatorii pot folosi aceasta comanda (/donatie)."); } }[/pawn] [pawn] if(strcmp(cmd, "/destroythiscar", true) == 0 || strcmp(cmd, "/dtc", true) == 0) // by DBZ { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 1339 ) { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); return 1; } if(IsPlayerInAnyVehicle(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "AdmWarning: Admin %s has just destroyed vehicle id %d.",sendername,GetPlayerVehicleID(playerid)); ABroadCast(COLOR_YELLOW,string,1); DestroyVehicle(GetPlayerVehicleID(playerid)); RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY, " Vehicle Destroyed !"); } } return 1; }[/pawn] Ai incercat sa rezolvi singur ?: Da Cand creez masinile pentru playeri e totul bn si ok dar daca incerc sa le sterg dispar doar din joc dar raman inregistrate pe acei playeri si nu pot creea altele deoarece limita e de 2 masini. Cums a fac sa le sterg? P.S. Am modificat modelul cereri imd dupa dar ai inchis inainte sa dau save... Multumesc!
  8. Buna, am o problema la sistemul de masini personale, cred ca problema este destul de cunoscuta. Creez o masina si ii dau numele proprietarului dar daca le sterg ele tot raman inregistrate pe acel player.Folosesc /dtc sau /adeletecar si la fel se intampla la ambele, zice ca playerul acesta deja detine 2 masini personale(limita). Acestea sunt codurile pawno: /acreatecar [pawn] if(strcmp(cmd, "/acreatecar", true) == 0) { if(PlayerInfo[playerid][pAdmin] == 1339) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2]"); return 1; } new car; car = strval(tmp); if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_WHITE, " Vehicle Number can't be below 400 or above 611 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 252) { SendClientMessage(playerid, COLOR_WHITE, " Color Number can't be below 0 or above 252 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 252) { SendClientMessage(playerid, COLOR_WHITE, " Color Number can't be below 0 or above 252 !"); return 1; } new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new thiscar = CreateVehicle(car,X,Y,Z,1,color1,color2,99999999); CarInfo[thiscar][cOwned] = 0; CarInfo[thiscar][cModel] = car; CarInfo[thiscar][cColorOne] = color1; CarInfo[thiscar][cColorTwo] = color2; CarInfo[thiscar][cLocationx] = X; CarInfo[thiscar][cLocationy] = Y; CarInfo[thiscar][cLocationz] = Z; CarInfo[thiscar][cAngle] = 1; PutPlayerInVehicle(playerid,thiscar,0); strmid(CarInfo[vehid][cOwner], "No-one", 0, strlen("No-one"), 999); format(CarInfo[thiscar][cDescription], 32, "%s",vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); format(string, sizeof(string), "The car %s [%d] has been created",CarInfo[thiscar][cDescription],thiscar); SendClientMessage(playerid, COLOR_BLUE, string); ShowPlayerDialog(playerid,DIALOGIDSETOWNER,DIALOG_STYLE_INPUT,"{E0941B}Vehicle owner","Write playerid/PartOfName \nto make owner this car:","Enter","Close"); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); return 1; } } if(strcmp(cmd, "/dveh", true) == 0 || strcmp(cmd, "/dvehicle", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pPcarkey] != -1) { ShowPlayerDialog(playerid,DIALOGDVEH,DIALOG_STYLE_LIST," Donater vehicle", "Change vehicle model \nChange vehicle colors \nSave the position vehicle \nRespawn the vehicle","Enter","Close"); return 1; } else SendClientMessage(playerid, COLOR_GREY, " Numai donatorii pot folosi aceasta comanda (/donatie)."); } }[/pawn] /dtc [pawn] if(strcmp(cmd, "/destroythiscar", true) == 0 || strcmp(cmd, "/dtc", true) == 0) // by DBZ { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 1339 ) { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); return 1; } if(IsPlayerInAnyVehicle(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "AdmWarning: Admin %s has just destroyed vehicle id %d.",sendername,GetPlayerVehicleID(playerid)); ABroadCast(COLOR_YELLOW,string,1); DestroyVehicle(GetPlayerVehicleID(playerid)); RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY, " Vehicle Destroyed !"); } } return 1; }[/pawn] /adeletecar [pawn] if(strcmp(cmd, "/adeletecar", true) == 0) { if(PlayerInfo[playerid][pAdmin] == 1339) { CarInfo[idcar][cOwned] = 0; CarInfo[idcar][cModel] = 0; CarInfo[idcar][cColorOne] = 0; CarInfo[idcar][cColorTwo] = 0; CarInfo[idcar][cLocationx] = 0; CarInfo[idcar][cLocationy] = 0; CarInfo[idcar][cLocationz] = 0; CarInfo[idcar][cAngle] = 0; strmid(CarInfo[idcar][cOwner], "No-one", 0, strlen("No-one"), 999); format(CarInfo[idcar][cDescription], 32, "0"); DestroyVehicle(idcar); OnCarUpdate(); SavePlayerData(playerid); } } if(strcmp(cmd, "/acreatecar", true) == 0) { if(PlayerInfo[playerid][pAdmin] == 1339) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2]"); return 1; } new car; car = strval(tmp); if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_WHITE, " Vehicle Number can't be below 400 or above 611 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 252) { SendClientMessage(playerid, COLOR_WHITE, " Color Number can't be below 0 or above 252 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 252) { SendClientMessage(playerid, COLOR_WHITE, " Color Number can't be below 0 or above 252 !"); return 1; } new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new thiscar = CreateVehicle(car,X,Y,Z,1,color1,color2,99999999); CarInfo[thiscar][cOwned] = 0; CarInfo[thiscar][cModel] = car; CarInfo[thiscar][cColorOne] = color1; CarInfo[thiscar][cColorTwo] = color2; CarInfo[thiscar][cLocationx] = X; CarInfo[thiscar][cLocationy] = Y; CarInfo[thiscar][cLocationz] = Z; CarInfo[thiscar][cAngle] = 1; PutPlayerInVehicle(playerid,thiscar,0); strmid(CarInfo[vehid][cOwner], "No-one", 0, strlen("No-one"), 999); format(CarInfo[thiscar][cDescription], 32, "%s",vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); format(string, sizeof(string), "The car %s [%d] has been created",CarInfo[thiscar][cDescription],thiscar); SendClientMessage(playerid, COLOR_BLUE, string); ShowPlayerDialog(playerid,DIALOGIDSETOWNER,DIALOG_STYLE_INPUT,"{E0941B}Vehicle owner","Write playerid/PartOfName \nto make owner this car:","Enter","Close"); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); return 1; } } if(strcmp(cmd, "/dveh", true) == 0 || strcmp(cmd, "/dvehicle", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pPcarkey] != -1) { ShowPlayerDialog(playerid,DIALOGDVEH,DIALOG_STYLE_LIST," Donater vehicle", "Change vehicle model \nChange vehicle colors \nSave the position vehicle \nRespawn the vehicle","Enter","Close"); return 1; } else SendClientMessage(playerid, COLOR_GREY, " Numai donatorii pot folosi aceasta comanda (/donatie)."); } }[/pawn] Va rog ajutatima Multumesc!
  9. http://www.speedyshare.com/vME2y/server-log.txt L-am uploadat aici fiindca era prea mare sa il pun direct Mentionez ca prin GM ma refer la intregul folder cu Scriptfiles,Plugins etc..
  10. Buna, am o problema legata de host, am facut un server cu un prieten si cand urc GM pe host si incerc sa il pornesc imi da o eroare "Error :Reading file" ,GM este cel de la Gamelife create de Darksone si vrem sa il punem ca GM de inceput pe care sa lucram....vreau doar sa stiu ce trb sa configurez sau ce sa adaug... :D
  11. Aici?Si cum ar trebuii sa il pun...? :| public LoadCar() { new arrCoords[30][64]; new strFromFile2[256]; new File: file = fopen("masini.cfg", io_read); if (file) { new idx = carsonserver; while (idx < sizeof(CarInfo)) { fread(file, strFromFile2); split(strFromFile2, arrCoords, ','); CarInfo[idx][cModel] = strval(arrCoords[0]); CarInfo[idx][cLocationx] = floatstr(arrCoords[1]); CarInfo[idx][cLocationy] = floatstr(arrCoords[2]); CarInfo[idx][cLocationz] = floatstr(arrCoords[3]); CarInfo[idx][cAngle] = floatstr(arrCoords[4]); CarInfo[idx][cColorOne] = strval(arrCoords[5]); CarInfo[idx][cColorTwo] = strval(arrCoords[6]); strmid(CarInfo[idx][cOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255); strmid(CarInfo[idx][cDescription], arrCoords[8], 0, strlen(arrCoords[8]), 255); CarInfo[idx][cValue] = strval(arrCoords[9]); CarInfo[idx][cOwned] = strval(arrCoords[10]); CarInfo[idx][mod1] = strval(arrCoords[11]); CarInfo[idx][mod2] = strval(arrCoords[12]); CarInfo[idx][mod3] = strval(arrCoords[13]); CarInfo[idx][mod4] = strval(arrCoords[14]); CarInfo[idx][mod5] = strval(arrCoords[15]); CarInfo[idx][mod6] = strval(arrCoords[16]); CarInfo[idx][mod7] = strval(arrCoords[17]); CarInfo[idx][mod8] = strval(arrCoords[18]); CarInfo[idx][mod9] = strval(arrCoords[19]); CarInfo[idx][mod10] = strval(arrCoords[20]); CarInfo[idx][mod11] = strval(arrCoords[21]); CarInfo[idx][mod12] = strval(arrCoords[22]); CarInfo[idx][mod13] = strval(arrCoords[23]); CarInfo[idx][mod14] = strval(arrCoords[24]); CarInfo[idx][mod15] = strval(arrCoords[25]); CarInfo[idx][mod16] = strval(arrCoords[26]); CarInfo[idx][mod17] = strval(arrCoords[27]); CarInfo[idx][paintjob] = strval(arrCoords[28]); LoadComponents(idx); idx++; } } return 1; } public SaveCarCoords() { new idx; new File: file2; while (idx < sizeof(CarInfo)) { new coordsstring[256]; format(coordsstring, sizeof(coordsstring), "%d|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\n", CarInfo[idx][cModel], CarInfo[idx][cLocationx], CarInfo[idx][cLocationy], CarInfo[idx][cLocationz], CarInfo[idx][cAngle], CarInfo[idx][cColorOne], CarInfo[idx][cColorTwo], CarInfo[idx][mod1], CarInfo[idx][mod2], CarInfo[idx][mod3], CarInfo[idx][mod4], CarInfo[idx][mod5], CarInfo[idx][mod6], CarInfo[idx][mod7], CarInfo[idx][mod8], CarInfo[idx][mod9], CarInfo[idx][mod10], CarInfo[idx][mod11], CarInfo[idx][mod12], CarInfo[idx][mod13], CarInfo[idx][mod14], CarInfo[idx][mod15], CarInfo[idx][mod16], CarInfo[idx][mod17], CarInfo[idx][paintjob]); if(idx == carsonserver) { file2 = fopen("masini.cfg", io_write); } else { file2 = fopen("masini.cfg", io_append); } fwrite(file2, coordsstring); idx++; fclose(file2); } return 1; } public settime(playerid) { new string[256],year,month,day,hours,minutes,seconds; getdate(year, month, day), gettime(hours, minutes, seconds); format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year); TextDrawSetString(Date, string); format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds); TextDrawSetString(Time, string);
  12. Buna,am un bug la GM ,nu se poate schimba culoarea Ramane numai la culoare alba (orice vehicul).Nici atunci cand o creez nu merge sa apara cum vreau,nici dak proprietarul incearca sa o schimbe nu merge....merge doar la ala unde tunezi masinile dar dupa respawn au iarasi culoarea alba :| Mentionez ca,Clientul, este luat 60% de la clientul lui Darksone!
×
×
  • 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.