Jump to content

IstuntmanI

Membru
  • Posts

    3.897
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by IstuntmanI

  1. Nu se cer scripturi ... Vezi pe la OnPlayerConnect ...
  2. Aveti o placere sa deschideti topicuri vechi ... Oricum: Destul de reusit pentru acel an xD, 5/5.
  3. 1. De ce sa stergi jumatate de GM ? 2. Zh3r0 nu mai e aici. Nu mai verifica forumul. 3. 20% warn pentru 4x post, 5% pentru fiecare post. xD
  4. Nu mersi. Updateaza-le si zi daca merge.
  5. Updateaza-ti toate pluginurile pe care le folosesti.
  6. Prea tarziu. Warn 20%, motiv: "ms, ms dupa fiecare post". Te-am lasat, ti-am si zis pe Y!M sa incetezezi, dar ai continuat, acum ai luat warn. Faci asta pentru Post-Count.
  7. Se inchidea consola atunci. ; Ori nu ai toate pluginurile, ori nu ai instalat .net Framework 3.5, daca il ai instalat, arata-ne toate #include din GM tau.
  8. Ai uitat pe undeva o } . http://forum.sa-mp.com/showthread.php?t=117950 - ceva asemanator , deci nu-l mai continua pe al tau, ca vad ca tot un Car Spawner e.
  9. http://wiki.sa-mp.com/wiki/OnPlayerSpawn ; Iar acolo bagi SetPlayerPos.
  10. I hope you're kidding xD Este stuntman, nu StuntMan. Ia-ti pawno.exe si pawncc.exe din nou si compileaza, daca tot nu merge, ia din nou samp-server.exe Data viitoare nu mai "striga" pe nimeni sa te ajute prin posturi sau prin PM.
  11. Pune sus in OnPlayerCommandText asta: new cmd[ 256 ], playername[ MAX_PLAYER_NAME ]; cmd = strtok(cmdtext, idx); Si daca da erori cu "strtok" baga asta undeva in script: strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; }
  12. Probleme Godfather. O variabila + http://wiki.sa-mp.com/wiki/OnPlayerText + http://wiki.sa-mp.com/wiki/Strcmp
  13. Nu se cer scripturi/scripteri. Mai bine ia un sistem de administrare de pe sa-mp.com pentru ca esti inca incepator.
  14. Comenzile alea se adauga sub OnPlayerCommandText In orice GM exista aceste erori.
  15. 2x post + cerere script = 15% warn + Topic Locked.
  16. 1. La OnPlayerSpawn la final: if( GetPlayerSkin( playerid ) == ID_POLITIST_PD && PlayerInfo[ playerid ][ pMember ] != ID_FACTIUNE_PD ) SetPlayerSkin( playerid, SKIN );( nu's sigur ca am priceput bine ce vrei, mai explica o data ) 2. http://forum.sa-mp.com/showthread.php?t=140360
  17. Uite functia PayDay identitata: ( adica fara loose indentation ) public PayDay( ) { new string[ 128 ], account, interest, rent = 0; new randf = random( sizeof( JailRandomSpawn ) ); for( new i = 0; i < MAX_PLAYERS; i++ ) { if( !IsPlayerConnected( i ) ) return 1; if( PlayerInfo[ i ][ pLevel ] == 0 ) return SendClientMessage( i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a PayDay." ); if( MoneyMessage[ i ]==1 ) { SendClientMessage( i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time." ); GameTextForPlayer( i, "~r~Busted!", 2000, 1 ); SetPlayerInterior( i, 6 ); SetPlayerPos( i, JailRandomSpawn[ randf ][ 0 ], JailRandomSpawn[ randf ][ 1 ], JailRandomSpawn[ randf ][ 2 ] ); SetPlayerFacingAngle( i, JailRandomSpawn[ randf ][ 3 ] ); PlayerInfo[ i ][ pJailed ] = 1; ResetPlayerWeapons( i ); WantedPoints[ i ] = 0; PlayerInfo[ i ][ pJailTime ] = 240; TextDrawShowForPlayer( i, JailTimeText[ i ] ); format( string, sizeof( string ), "You are jailed for %d seconds. Bail: Unable", PlayerInfo[ i ][ pJailTime ] ); SendClientMessage( i, COLOR_LIGHTBLUE, string ); } new playername2[ MAX_PLAYER_NAME ]; GetPlayerName( i, playername2, sizeof( playername2 ) ); account = PlayerInfo[ i ][ pAccount ]; new key = PlayerInfo[ i ][ pPhousekey ]; if( key != 255 ) { rent = HouseInfo[ key ][ hRent ]; if( strcmp( playername2, HouseInfo[ key ][ hOwner ], true ) == 0 ) { rent = 0; } else if( rent > GetPlayerMoney( i ) ) { PlayerInfo[ i ][ pPhousekey ] = 255; SendClientMessage( i, COLOR_WHITE, "You have been evicted." ); rent = 0; } HouseInfo[ key ][ hTakings ] = HouseInfo[ key ][ hTakings ]+rent; } new tmpintrate; if ( key != 255 && strcmp( playername2, HouseInfo[ key ][ hOwner ], true ) == 0 ) { if( PlayerInfo[ i ][ pDonateRank ] >= 8 ) {tmpintrate = intrate+4; } else {tmpintrate = intrate+2; }//HouseInfo[ key ][ hLevel ] } else { if( PlayerInfo[ i ][ pDonateRank ] > 6 ) {tmpintrate = 3; } else {tmpintrate = 1; } } if( PlayerInfo[ i ][ pPayDay ] >= 5 ) { Tax += TaxValue;//Should work for every player online PlayerInfo[ i ][ pAccount ] -= TaxValue; if( PlayerInfo[ i ][ pDonateRank ] >= 4 ) { new bonus = PlayerInfo[ i ][ pPayCheck ] / 2; PlayerInfo[ i ][ pPayCheck ] += bonus; } new checks = PlayerInfo[ i ][ pPayCheck ]; new ebill = ( PlayerInfo[ i ][ pAccount ]/100000 )*( PlayerInfo[ i ][ pLevel ] ); ConsumingMoney[ i ] = 1; GivePlayerMoney( i, checks ); if( PlayerInfo[ i ][ pAccount ] > 0 ) { PlayerInfo[ i ][ pAccount ] -= ebill; SBizzInfo[ 4 ][ sbTill ] += ebill; } else { ebill = 0; } new gbill = ( PlayerInfo[ i ][ pAccount ]/100000 )*( PlayerInfo[ i ][ pLevel ] ); ConsumingMoney[ i ] = 1; GivePlayerMoney( i, checks ); if( PlayerInfo[ i ][ pAccount ] > 0 ) { PlayerInfo[ i ][ pAccount ] -= gbill; SBizzInfo[ 14 ][ sbTill ] += gbill; } else { gbill = 0; } new wbill = ( PlayerInfo[ i ][ pAccount ]/100000 )*( PlayerInfo[ i ][ pLevel ] ); ConsumingMoney[ i ] = 1; GivePlayerMoney( i, checks ); if( PlayerInfo[ i ][ pAccount ] > 0 ) { PlayerInfo[ i ][ pAccount ] -= wbill; SBizzInfo[ 18 ][ sbTill ] += wbill; } else { wbill = 0; } interest = ( PlayerInfo[ i ][ pAccount ]/1000 )*( tmpintrate ); PlayerInfo[ i ][ pExp ]++; PlayerPlayMusic( i ); PlayerInfo[ i ][ pAccount ] = account+interest; SendClientMessage( i, COLOR_WHITE, "|___ BANK STATMENT ___|" ); format( string, sizeof( string ), " Paycheck: $%d Tax Money: -$%d", checks, TaxValue ); SendClientMessage( i, COLOR_GRAD1, string ); if( PlayerInfo[ i ][ pPhousekey ] != 255 || PlayerInfo[ i ][ pPbiskey ] != 255 ) { format( string, sizeof( string ), " Electricity Bill: -$%d || Gas Bill: -$%d || Weather Bill: -$%d", ebill, gbill, wbill ); SendClientMessage( i, COLOR_GRAD1, string ); } format( string, sizeof( string ), " Balance: $%d", account ); SendClientMessage( i, COLOR_GRAD1, string ); format( string, sizeof( string ), " Interest Rate: 0.%d percent", tmpintrate ); SendClientMessage( i, COLOR_GRAD2, string ); format( string, sizeof( string ), " Interest Gained $%d", interest ); SendClientMessage( i, COLOR_GRAD3, string ); SendClientMessage( i, COLOR_GRAD4, "|--------------------------------------|" ); format( string, sizeof( string ), " New Balance: $%d", PlayerInfo[ i ][ pAccount ] ); SendClientMessage( i, COLOR_GRAD5, string ); format( string, sizeof( string ), " Rent: -$%d", rent ); SendClientMessage( i, COLOR_GRAD5, string ); format( string, sizeof( string ), "~y~PayDay~n~~w~Paycheck" ); GameTextForPlayer( i, string, 5000, 1 ); rent = 0; PlayerInfo[ i ][ pPayDay ] = 0; PlayerInfo[ i ][ pPayCheck ] = 0; PlayerInfo[ i ][ pConnectTime ] += 1; PlayerInfo[ i ][ pRob ] += 1; if( PlayerInfo[ i ][ pDonateRank ] > 6 ) { PlayerInfo[ i ][ pPayDayHad ] += 1; if( PlayerInfo[ i ][ pPayDayHad ] >= 5 ) { PlayerInfo[ i ][ pExp ]++; PlayerInfo[ i ][ pPayDayHad ] = 0; } } if( PlayerInfo[ i ][ pMember ] == 14 || PlayerInfo[ i ][ pLeader ] == 14 ) { PlayerInfo[ i ][ pTow ] += 5; } Checkprop( ); } } return 1; } Incearca asa comanda: if( strcmp( cmdtext, "/payday", true ) == 0 ) { if( PlayerInfo[ playerid ][ pAdmin ] < 1338 ) return SendClientMessage( playerid, COLOR_GRAD1, "! You are not authorized to use this command !" ); PayDay( ); return 1; }
  18. Esti un geniu -.-' Foloseste un timer care sa se actioneze cand scrii comanda de deschidere, iar acela timer sa contina un MoveObject cu pozitia initiala a acelui obiect.
  19. Nu se cer scripturi. Foarte bine zis.
  20. Foarte tare, bravo, 5/5. :P
  21. Pune ce ti-a dat RoberTo in script. Si da-ne si liniile 12.248 si 16.089. EDIT: Scuze, cred ca am bifat Lock Topic din greseala :]]
  22. Ia-ti Windows Installer 3.1, instaleaza-l apoi instaleaza .net Framework.
  23. Fa-le singur, nu se cer scripturi. PS: Warn +15%, 2x post + cerere script.
  24. Sterge toate folderele pawno din calculator si lasa-l doar pe cel care vrei sa-l folosesti, cel din serverul tau si baga acolo includele ! SAU Deschide GM tau cu pawno din folderul serverului si apasa F5 dupa ce ai bagat includele.
  25. Rezolvarea la "preblema" ta este asta: Acel fisier nu este in folderul de la GTA:SA, ci in
×
×
  • 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.