Jump to content

fytza

Membru
  • Posts

    92
  • Joined

  • Last visited

Everything posted by fytza

  1. Anti-Chat care il folosesc: http://pastebin.com/GcDwEhUm
  2. Nick:fytza Problema:Comanda /giveallmoney .. da banii si dupa ii ia inapoi Erori / warnings:- Lini/script:- Ai incercat sa rezolvi singur ?:da. [pawn]CMD:giveallmoney(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(PlayerInfo[playerid][pAdminLevel] >= 5) { new moneyall,sendername[MAX_PLAYER_NAME],string[100]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(sscanf(params, "i",moneyall)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /giveallmoney <money>"); if(moneyall >= 99999999) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Error: Too much moneys."); else if(moneyall < 99999999) { format(string, sizeof(string),"{f03337}Admin %s give %s$ to all players online.",sendername,FormatMoney(moneyall)); SendClientMessageToAll(COLOR_WHITE,string); foreach(Player,i) { GivePlayerMoney(i, moneyall); } } } else { SendClientMessage(playerid, COLOR_WHITE, AdminOnly); return 1; } return 1; }[/pawn]
  3. fytza

    Problema

    stie cineva?
  4. fytza

    Problema

    [pawn]CMD:giveallmoney(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(PlayerInfo[playerid][pAdminLevel] >= 5) { new Money; new moneyall,sendername[MAX_PLAYER_NAME],string[100]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(sscanf(params, "i",moneyall)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /giveallmoney <money>"); if(moneyall >= 99999999) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Error: Too much moneys."); else if(moneyall < 99999999) { format(string, sizeof(string),"{f03337}Admin %s give %s$ to all players online.",sendername,FormatMoney(moneyall)); SendClientMessageToAll(COLOR_WHITE,string); foreach(Player,i) { GivePlayerMoney(i, moneyall); PlayerInfo[ playerid ][pCash] += Money; format(SQLString, sizeof(SQLString), "UPDATE `users` SET `Cash` = '%d' WHERE `UserName` = '%s'", PlayerInfo[ playerid ][pCash], PlayerName( playerid )); mysql_function_query(gHandle, SQLString, false, "SendQuery", ""); } } } else { SendClientMessage(playerid, COLOR_WHITE, AdminOnly); return 1; } return 1; }[/pawn] Cum o pot repara.. cand dau bani ii da si dupa ii ia inapoi!
  5. fytza

    Problema

    /giveallmoney cum pot sa rezolv ? nu se poate rezolva deloc ?
  6. fytza

    Problema

    Salut, Nu pot Posta tot asa ca am pus aici cu tot cu model. (I-am dam pm lui viorel, poate rezolva problema ) http://pastebin.com/JBRfCQAx
  7. Forbidden You don't have permission to access /forum/index.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
  8. Nu pot posta cu modelul si ce am pus eu .....
  9. fytza

    Problema

    OnPlayerUpdate .. nu am gasit in gm .. nu am functia..
  10. fytza

    Problema

    Nu merge.. tot asa face..
  11. fytza

    Problema

    http://pastebin.com/B0qVBsSB Poftim!
  12. fytza

    Problema

    [pawn]public OnPlayerGiveDamage ( playerid , damagedid , Float: amount , weaponid ) { if ( GetPlayerTargetPlayer ( playerid ) == INVALID_PLAYER_ID ) { if ( weaponid > 21 && weaponid < 39 ) { //format ( gString , sizeof ( gString ) , ""ROSU3"AdmCmd: %s has been detected with posible JoyPad." , PlayerName ( playerid ) ) ; //AdminsMessage ( -1 , gString ) ; } } if ( damagedid == INVALID_PLAYER_ID || damagedid != INVALID_PLAYER_ID ) { if ( ( damagedid == playerid ) || ( !PlayersDistance ( 1 , playerid , damagedid ) && weaponid < 19 ) || ( !PlayersDistance ( 1 , playerid , damagedid ) && weaponid == 27 ) || ( !PlayersDistance ( 1 , playerid , damagedid ) && weaponid == 28 ) || ( !PlayersDistance ( 1 , playerid , damagedid ) && weaponid > 34 ) || ( !PlayersDistance ( 1 , playerid , damagedid ) && weaponid == 54 ) ) { return 1 ; } } if ( damagedid != INVALID_PLAYER_ID ) { new Float: armour , Float: health , Float: PlayerHealth [ MAX_PLAYERS ] ; GetPlayerHealth ( damagedid , health ) ; GetPlayerArmour ( damagedid , armour ) ; if ( ( health == PlayerHealth [ damagedid ] ) && ( PlayerIsDeath [ damagedid ] == 0 ) ) { format ( gString , sizeof ( gString ) , ""ROSU3"AdmCmd: %s was detected with posible Invulnerable Cheat." , PlayerName ( damagedid ) ) ; AdminsMessage ( -1 , gString ) ; HelpersMessage ( -1 , gString ) ; } armour = armour - amount ; if ( armour < 0.0 ) { health += armour ; if ( health <= 0.0 ) { health = 0.0 ; if ( PlayerIsDeath [ damagedid ] == 0 ) { PlayerIsDeath [ damagedid ] = 4 ; OnPlayerDeath ( damagedid , playerid , weaponid ) ; } } armour = 0.0 ; } SetPlayerHealth ( damagedid , health ) ; SetPlayerArmour ( damagedid , armour ) ; PlayerHealth [ damagedid ] = health ; } return 1 ; }[/pawn] OnPlayerUpdate - nu am ..
  13. fytza

    Problema

    [pawn]public OnGameModeInit() { // ServerLogFile = fileOpen ( "server_log.txt" , io_Read ) ; DDosTimer = SetTimer ( "CheckDDosAtack" , 100 , true ) ; if( fexist( "InvalidWords.txt" ) ) { new File:myFile, line[ 32 ], index = 0; myFile = fopen( "InvalidWords.txt", filemode:io_read ); while( fread( myFile, line, sizeof( line ) ) && ( index != MAX_WORDS ) ) { if( strlen( line ) > 32 ) continue; StripNewLine( line ); strmid( IWords[ index ], line, 0, strlen( line ),sizeof( line ) ); index++; } } new stringlogo[50]; format(stringlogo,sizeof(stringlogo)," ~r~rpg~y~.gta.~b~~h~ro"); ShadowsRandom = TextDrawCreate(547.600280, 432.569152,stringlogo); TextDrawLetterSize(ShadowsRandom, 0.202399, 1.321244); TextDrawColor(ShadowsRandom, -1523963137); TextDrawSetShadow(ShadowsRandom, 1); TextDrawSetOutline(ShadowsRandom, 1); TextDrawFont(ShadowsRandom, 3); SemaforChenar = TextDrawCreate ( 265.000000 , 40.000000 , "Semafor" ) ; TextDrawBackgroundColor ( SemaforChenar , 0 ) ; TextDrawFont ( SemaforChenar , 1 ) ; TextDrawLetterSize ( SemaforChenar , 0.500000 , 3.500000 ) ; TextDrawColor ( SemaforChenar , 0 ) ; TextDrawSetOutline ( SemaforChenar , 0 ) ; TextDrawSetProportional ( SemaforChenar , 1 ) ; TextDrawSetShadow ( SemaforChenar , 1 ) ; TextDrawUseBox ( SemaforChenar , 1 ) ; TextDrawBoxColor ( SemaforChenar , 338826495 ) ; TextDrawTextSize ( SemaforChenar , 384.000000 , 0.000000 ) ; SChenarRosu = TextDrawCreate ( 278.000000 , 48.000000 , "SChenarRosu" ) ; TextDrawBackgroundColor ( SChenarRosu , 0 ) ; TextDrawFont ( SChenarRosu , 1 ) ; TextDrawLetterSize ( SChenarRosu , 0.500000 , 1.800001 ) ; TextDrawColor ( SChenarRosu , 0 ) ; TextDrawSetOutline ( SChenarRosu , 0 ) ; TextDrawSetProportional ( SChenarRosu , 1 ) ; TextDrawSetShadow ( SChenarRosu , 1 ) ; TextDrawUseBox ( SChenarRosu , 1 ) ; TextDrawBoxColor ( SChenarRosu , 840176895 ) ; TextDrawTextSize ( SChenarRosu , 293.000000 , 0.000000 ) ; SChenarGalben = TextDrawCreate ( 320.000000 , 48.000000 , "SChenarGalben" ) ; TextDrawBackgroundColor ( SChenarGalben , 0 ) ; TextDrawFont ( SChenarGalben , 1 ) ; TextDrawLetterSize ( SChenarGalben , 0.500000 , 1.800001 ) ; TextDrawColor ( SChenarGalben , 0 ) ; TextDrawSetOutline ( SChenarGalben , 0 ) ; TextDrawSetProportional ( SChenarGalben , 1 ) ; TextDrawSetShadow ( SChenarGalben , 1 ) ; TextDrawUseBox ( SChenarGalben , 1 ) ; TextDrawBoxColor ( SChenarGalben , 842142975 ) ; TextDrawTextSize ( SChenarGalben , 334.000000 , 0.000000 ) ; SChenarVerde = TextDrawCreate ( 359.000000 , 48.000000 , "SChenarVerde" ) ; TextDrawBackgroundColor ( SChenarVerde , 0 ) ; TextDrawFont ( SChenarVerde , 1 ) ; TextDrawLetterSize ( SChenarVerde , 0.500000 , 1.800001 ) ; TextDrawColor ( SChenarVerde , 0 ) ; TextDrawSetOutline ( SChenarVerde , 0 ) ; TextDrawSetProportional ( SChenarVerde , 1 ) ; TextDrawSetShadow ( SChenarVerde , 1 ) ; TextDrawUseBox ( SChenarVerde , 1 ) ; TextDrawBoxColor ( SChenarVerde , 337515775 ) ; TextDrawTextSize ( SChenarVerde , 373.000000 , 0.000000 ) ; SCuloareRosu = TextDrawCreate ( 281.000000 , 51.000000 , "SCuloareRosu" ) ; TextDrawBackgroundColor ( SCuloareRosu , 0 ) ; TextDrawFont ( SCuloareRosu , 1 ) ; TextDrawLetterSize ( SCuloareRosu , 0.500000 , 1.100001 ) ; TextDrawColor ( SCuloareRosu , 0 ) ; TextDrawSetOutline ( SCuloareRosu , 0 ) ; TextDrawSetProportional ( SCuloareRosu , 1 ) ; TextDrawSetShadow ( SCuloareRosu , 1 ) ; TextDrawUseBox ( SCuloareRosu , 1 ) ; TextDrawBoxColor ( SCuloareRosu , -938208001 ) ; TextDrawTextSize ( SCuloareRosu , 291.000000 , 0.000000 ) ; SCuloareGalben = TextDrawCreate ( 322.000000 , 51.000000 , "SCuloareGalben" ) ; TextDrawBackgroundColor ( SCuloareGalben , 0 ) ; TextDrawFont ( SCuloareGalben , 1 ) ; TextDrawLetterSize ( SCuloareGalben , 0.500000 , 1.100001 ) ; TextDrawColor ( SCuloareGalben , 0 ) ; TextDrawSetOutline ( SCuloareGalben , 0 ) ; TextDrawSetProportional ( SCuloareGalben , 1 ) ; TextDrawSetShadow ( SCuloareGalben , 1 ) ; TextDrawUseBox ( SCuloareGalben , 1 ) ; TextDrawBoxColor ( SCuloareGalben , -926411521 ) ; TextDrawTextSize ( SCuloareGalben , 332.000000 , 0.000000 ) ; SCuloareVerde = TextDrawCreate ( 362.000000 , 51.000000 , "SCuloareVerde" ) ; TextDrawBackgroundColor ( SCuloareVerde , 0 ) ; TextDrawFont ( SCuloareVerde , 1 ) ; TextDrawLetterSize ( SCuloareVerde , 0.500000 , 1.100001 ) ; TextDrawColor ( SCuloareVerde , 0 ) ; TextDrawSetOutline ( SCuloareVerde , 0 ) ; TextDrawSetProportional ( SCuloareVerde , 1 ) ; TextDrawSetShadow ( SCuloareVerde , 1 ) ; TextDrawUseBox ( SCuloareVerde , 1 ) ; TextDrawBoxColor ( SCuloareVerde , 348656895 ) ; TextDrawTextSize ( SCuloareVerde , 370.000000 , 0.000000 ) ; ChenarRaceTime = TextDrawCreate ( 620.000000 , 160.000000 , "ChenarRaceTime" ) ; TextDrawBackgroundColor ( ChenarRaceTime , 0 ) ; TextDrawFont ( ChenarRaceTime , 1 ) ; TextDrawLetterSize ( ChenarRaceTime , 0.500000 , 2.499999 ) ; TextDrawColor ( ChenarRaceTime , 0 ) ; TextDrawSetOutline ( ChenarRaceTime , 0 ) ; TextDrawSetProportional ( ChenarRaceTime , 1 ) ; TextDrawSetShadow ( ChenarRaceTime , 1 ) ; TextDrawUseBox ( ChenarRaceTime , 1 ) ; TextDrawBoxColor ( ChenarRaceTime , 1010580580 ) ; TextDrawTextSize ( ChenarRaceTime , 535.000000 , 0.000000 ) ; mySQL_init(); LoadCivilCars ( ) ; LoadPoliceDepartmentCars ( ) ; LoadFBICars ( ) ; LoadNewsReporterCars ( ) ; LoadTaxiCompanyCars ( ) ; LoadHitmanAgencyCars ( ) ; LoadCorleoneFamilyCars ( ) ; LoadYakuzaMafiaCars ( ) ; LoadBallasCars ( ) ; LoadGroveStreetCars ( ) ; LoadFlashRacingCars ( ) ; //LoadLSCarServiceCars ( ) ; LoadHouses(); LoadBussiness(); LoadPickups(); ChangeWeather(); JobBusDriverCars(); JobGunoierCars(); JobCementTruckerCars(); JobPizzaBoyCars(); LoadGPSLocations(); LoadGPSFactions(); LoadGPSJobs(); LoadRentCarLS(); LoadRentPlaneLS(); LoadPersonalCars(); LoadTurfs( ); LoadFactions( ); LoadDealer ( ); LoadLicensesCar(); LoadRaces ( ) ; LoadClans ( ) ; LoadObjects ( ) ; SetTimer ( "StartServer" , 1000 * 10 , false ) ; SetGameModeText("GTA v1.4"); UsePlayerPedAnims ( ) ; DisableInteriorEnterExits ( ) ; ShowPlayerMarkers ( 0 ) ; EnableStuntBonusForAll ( 0 ) ; ManualVehicleEngineAndLights ( ) ;[/pawn] si asta: de la settimer ( startserver) [pawn]forward StartServer ( ) ; public StartServer ( ) { for ( new c = 0 ; c < MAX_VEHICLES ; c ++ ) { GetVehicleParamsEx ( c , engine , lights , alarm , doors , bonnet , boot , objective ) ; SetVehicleParamsEx ( c , false , false , alarm , doors , bonnet , boot , objective ) ; VehicleFuel [ c ] = 100 ; CarRadio [ c ] = 0 ; VEngine [ c ] = false ; VLights [ c ] = false ; VehicleRented [ c ] = false ; PersonalCar [ c ] = MAX_PERSONALCARS ; } return 1 ; }[/pawn]
  14. fytza

    Problema

    uite: [pawn]public PlayersDistance(Float:radi, playerid, targetid) { if(IsPlayerConnected(playerid) && IsPlayerConnected(targetid)) { new Float:Pos[3], Float:OldPos[3], Float:TempPos[3]; GetPlayerPos(playerid, OldPos[0], OldPos[1], OldPos[2]); GetPlayerPos(targetid, Pos[0], Pos[1], Pos[2]); TempPos[0] = (OldPos[0] - Pos[0]); TempPos[1] = (OldPos[1] - Pos[1]); TempPos[2] = (OldPos[2] - Pos[2]); if(((TempPos[0] < radi) && (TempPos[0] > - radi)) && ((TempPos[1] < radi) && (TempPos[1] > - radi)) && ((TempPos[2] < radi) && (TempPos[2] > - radi))) { return 1; } } return 0; }[/pawn]
  15. fytza

    Problema

    tot nu am rezolvat.. stie cinevA??
  16. fytza

    Problema

    Am cautat.. nimic suspect..
  17. fytza

    Problema

    [pawn]forward KickTimer ( playerid );[/pawn] [pawn] public KickTimer( playerid ) { Kick( playerid ); return 1; }[/pawn]
  18. fytza

    Problema

    la OnPlayerDeath e decat :[pawn] new string[256]; if( killerid != INVALID_PLAYER_ID ) { if( PlayerInfo[ playerid ][ pPlayerConnected ] == 1 && PlayerInfo[ killerid ][ pPlayerConnected ] == 1 ) { if( reason == 255 && !PlayersDistance( 1, playerid, killerid ) ) { format( string, sizeof( string ), ""ROSU3"(Warning): Player %s (ID:%d) has disconnected from the server for possible Fake-Kill.", PlayerName( playerid ), playerid ); AdminsMessage( -1, string ); SetTimerEx( "KickTimer", 1000, false, "i", playerid ); } } }[/pawn]
  19. fytza

    Problema

    Nick:fytza Problema:Cand cineva te omoara, mai ai 3-4 secunde in care il poti omora si tu. Erori / warnings:- Lini/script:- Ai incercat sa rezolvi singur ?:da
  20. fytza

    Problema

    daca poti sa ne arati comanda ta.. te vom rezolva
  21. si cum o pot face sa rezolve!? ?
  22. Nick:fytza Problema:ma duc tunez masina si cand ii dau /savetuning imi zice : Gabii si-a salvat componentele tuningului de la masina , si cand dau /parcheaza zice: Ai parcat masina personala aici! si numai ramane tuningul .. cum pot face sa ramana tuningul salvat ? Erori / warnings: - Lini/script:- Ai incercat sa rezolvi singur ?:da [pawn] if(strcmp(cmd, "/parcheaza", true) == 0) { if(IsPlayerConnected(playerid)) { new Float:x,Float:y,Float:z; new Float:a; new carid; new getcarid; if(GetPlayerVehicleID(playerid) == PlayerData[playerid][pPcarkey]+PreVehicle) { carid = PlayerData[playerid][pPcarkey]; } else if(GetPlayerVehicleID(playerid) == PlayerData[playerid][pPcarkey1]+PreVehicle) { carid = PlayerData[playerid][pPcarkey1]; } else if(GetPlayerVehicleID(playerid) == PlayerData[playerid][pPcarkey2]+PreVehicle) { carid = PlayerData[playerid][pPcarkey2]; } else if(GetPlayerVehicleID(playerid) == PlayerData[playerid][pPcarkey3]+PreVehicle) { carid = PlayerData[playerid][pPcarkey3]; } else { return 1; } getcarid = GetPlayerVehicleID(playerid)-PreVehicle; GetPlayerName(playerid, playername, sizeof(playername)); GetVehiclePos(carid+PreVehicle, x, y, z); GetVehicleZAngle(carid+PreVehicle, a); if(IsPlayerInVehicle(playerid,carid+PreVehicle) && CarData[carid][cOwned] == 1) { if(PlayerData[playerid][pPcarkey] == 999 && PlayerData[playerid][pPcarkey1] == 999 && PlayerData[playerid][pPcarkey2] == 999 && PlayerData[playerid][pPcarkey3] == 999) { SendClientMessage(playerid, COLOR_GREY, "Nu detii o masina personala."); return 1; } if(getcarid == carid) { CarData[carid][cLocationx] = x; CarData[carid][cLocationy] = y; CarData[carid][cLocationz] = z; CarData[carid][cAngle] = a; SendClientMessage(playerid, COLOR_GRAD2, "Ai parcat masina personala aici!"); SendClientMessage(playerid, COLOR_GRAD2, "De acum masina ta se va respama aici!"); DestroyVehicle(carid+PreVehicle); CreateVehicle(CarData[carid][cModel],CarData[carid][cLocationx],CarData[carid][cLocationy],CarData[carid][cLocationz]+1.0,CarData[carid][cAngle],CarData[carid][cColorOne],CarData[carid][cColorTwo],60000); TogglePlayerControllable(playerid, 1); format(string, sizeof(string), "%s",CarData[carid][cNum]); SetVehicleNumberPlate(carid+PreVehicle, string); format(string, sizeof(string), "UPDATE cars SET Locationx='%f' WHERE id=%d", CarData[carid][cLocationx], carid); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Locationy='%f' WHERE id=%d", CarData[carid][cLocationy], carid); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Locationz='%f' WHERE id=%d", CarData[carid][cLocationz], carid); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Angle='%f' WHERE id=%d", CarData[carid][cAngle], carid); mysql_query(string); return 1; } } } }[/pawn] [pawn] if(strcmp(cmd, "/savetuning", true)==0) { new masina = GetPlayerVehicleID(playerid); if(masina > PreVehicle) { if(PlayerData[playerid][pPcarkey] == masina-PreVehicle || PlayerData[playerid][pPcarkey1] == masina-PreVehicle || PlayerData[playerid][pPcarkey2] == masina-PreVehicle ||PlayerData[playerid][pPcarkey3] == masina-PreVehicle) { new component; new query[256]; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 0); format(query, sizeof(query), "UPDATE cars SET Component00='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent00] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 1); format(query, sizeof(query), "UPDATE cars SET Component01='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent01] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 2); format(query, sizeof(query), "UPDATE cars SET Component02='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent02] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 3); format(query, sizeof(query), "UPDATE cars SET Component03='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent03] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 4); format(query, sizeof(query), "UPDATE cars SET Component04='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent04] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 5); format(query, sizeof(query), "UPDATE cars SET Component05='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent05] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 6); format(query, sizeof(query), "UPDATE cars SET Component06='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent06] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 7); format(query, sizeof(query), "UPDATE cars SET Component07='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent07] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 8); format(query, sizeof(query), "UPDATE cars SET Component08='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent08] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 9); format(query, sizeof(query), "UPDATE cars SET Component09='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent09] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 10); format(query, sizeof(query), "UPDATE cars SET Component10='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent10] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 11); format(query, sizeof(query), "UPDATE cars SET Component11='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent11] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 12); format(query, sizeof(query), "UPDATE cars SET Component12='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent12] = component; component = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 13); format(query, sizeof(query), "UPDATE cars SET Component13='%d' WHERE id=%d",component,masina-PreVehicle); mysql_query(query); CarData[masina-PreVehicle][cComponent13] = component; format(string, sizeof(string), "* %s si-a salvat componentele tuningului de la masina.", PlayerData[playerid][pNume]); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); printf("%s", string); return 1; } return 1; } return 1; }[/pawn]
  23. [pawn] if(strcmp(cmd, "/fuelcars", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerData[playerid][pAdmin] >= 3) { for(new c=0;c<CAR_AMOUNT;c++) { Gas[c] = GasMax; } SendClientMessage(playerid, COLOR_GREY, "Toate masinile au fost umplute cu benzina ! "); } else { SendError(playerid,cmd); return 1; } } return 1; }[/pawn] [pawn] if(strcmp(cmd, "/fill", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendUsage(playerid,"/fill [numar litri]"); return 1; } moneys = strval(tmp); new vid; new FillUpp; vid = GetPlayerVehicleID(playerid); FillUpp = GasMax - Gas[vid]; if(FillUpp < moneys || moneys <= 0) { SendClientMessage(playerid,COLOR_LIGHTRED,"ServeR: Ne pare rau, nu poti introduce in rezervor litri de benzina doriti."); return 1; } if(GetPlayerCash(playerid) < moneys * SBizzData[3][sbEntranceCost]) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "{DBED15}Angajat peco:{15D4ED} Nu ai destui bani, pentru a achita benzina."); return 1; } GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); if(engine == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "{DBED15}Angajat peco:{15D4ED} Nu alimentam masinile cu motorul in functiune."); return 1; } if(IsAtGasStation(playerid)) { GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Alimentare masina, te rugam asteapta...",2000,3); SetTimerEx("Fillup", RefuelWait, false, "i", playerid); Refueling[playerid] = 1; CaridRefuel[playerid] = vid; RefuelPrice[playerid] = moneys * SBizzData[3][sbEntranceCost]; RefuelLitri[playerid] = moneys; } else { SendClientMessage(playerid, COLOR_GREY, "Nu esti intr-o benzinarie!"); } } return 1; }[/pawn] [pawn] if(strcmp(cmd, "/fillcar", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerData[playerid][pFuel] > 0) { if(Gas[GetPlayerVehicleID(playerid)] < 81) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai bagat 20% benzina in rezervor din canistra ta"); Gas[GetPlayerVehicleID(playerid)] += 20; PlayerData[playerid][pFuel] = 0; format(string, sizeof(string), "UPDATE players SET Fuel='%d' WHERE id=%d", PlayerData[playerid][pFuel], PlayerData[playerid][pSQLID]); mysql_query(string); } else { SendClientMessage(playerid, COLOR_GREY, "Benzina masini tale este peste 80%!"); } } else { SendClientMessage(playerid, COLOR_GREY, "Nu ai benzina in canistra!"); } } return 1; }[/pawn]
×
×
  • 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.