Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Wklejka 1qeh4vkrk1wks dodana przez MarWit, 23.08.2012 21:39
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46.
public cmdDistributePointsH( id, iMenu, iItem ) { new iPoints = ( gPlayerInfo[ id ][ piClass ][ pciLevel ] * 2 ) - ( gPlayerInfo[ id ][ piClass ][ pciHealth ] + gPlayerInfo[ id ][ piClass ][ pciStrength ] + gPlayerInfo[ id ][ piClass ][ pciIntelligence ] + gPlayerInfo[ id ][ piClass ][ pciCondition ] ) ; new any:iState; switch( iItem ) { case 0..3: { iState = iItem + 3; if( gPlayerInfo[ id ][ piClass ][ iState ] + 1 > 500 ) ColorChat( id, TEAM_COLOR, "[^x04 NewCodMod^x02 ]^x01 %s", gszStateInfo[ iState - 3 ] ) else gPlayerInfo[ id ][ piClass ][ iState ] ++; } case 4..7: { iState = iItem - 1; if( gPlayerInfo[ id ][ piClass ] + 15 > iPoints ) ColorChat( id, TEAM_COLOR, "[^x04 NewCodMod^x02 ]^x01 Nie masz tylu punktow!" ); else if( gPlayerInfo[ id ][ piClass ][ iState ] + 15 > 500 ) ColorChat( id, TEAM_COLOR, "[^x04 NewCodMod^x02 ]^x01 %s", gszStateInfo[ iState - 3 ] ) else gPlayerInfo[ id ][ piClass ][ iState ] ++; } case 8..11: { iState = iItem - 5; gPlayerInfo[ id ][ piClass ][ iState ] += ( iPoints + gPlayerInfo[ id ][ piClass ][ iState ] ) > 500 ? 500 - gPlayerInfo[ id ][ piClass ][ iState ] : iPoints; if( gPlayerInfo[ id ][ piClass ][ iState ] == 500 ) ColorChat( id, TEAM_COLOR, "[^x04 NewCodMod^x02 ]^x01 %s", gszStateInfo[ iState - 3 ] ) } } cmdDistributePoints( id ); }
Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011