A lot of the time you can translate the cheats for various games... that was especially the case for Vice City... and it's the case for San Andreas on the more basic cheats (health, wanted level, etc.). The way you translate them is to find the how the buttons are set up and in what position for both consoles (and Gamecube?)... this only works for less than half the games, but it's always worth a try:
XBox --> PS2...
Y -----> Triangle
B -----> Circle
A -----> X
X -----> Square
R -----> R1
Black --> R2
L -----> L1
White --> L2
And then there's the Left Analog Stick and the Right, along with the directional pad, which are the same for both.
South Park, Charmed, Buffy The Vampire Slayer / Angel, Tru Calling, Family Guy, TrippingTheRift, FreeForAll, Futurama, Jackass, Lost, That 70's Show, Celebrity Deathmatch