fytza
Membru-
Posts
92 -
Joined
-
Last visited
About fytza
- Birthday 04/17/1976
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
fytza's Achievements
-
up
-
Anti-Chat care il folosesc: http://pastebin.com/GcDwEhUm
-
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]
-
[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!
-
/giveallmoney cum pot sa rezolv ? nu se poate rezolva deloc ?
-
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
-
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.
-
Nu pot posta cu modelul si ce am pus eu .....
-
OnPlayerUpdate .. nu am gasit in gm .. nu am functia..
-
http://pastebin.com/B0qVBsSB Poftim!
-
[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 ..
-
[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]