Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. getplayercolor(id)
  2. {
  3. id += 0
  4.  
  5. if(!checkHandles())
  6. return -1
  7.  
  8. color := readDWORD(hGTA, dwSAMP + 0x216378 + 4*id)
  9. if(ErrorLevel) {
  10. ErrorLevel := ERROR_READ_MEMORY
  11. return -1
  12. }
  13. return color
  14. }
  15.  
  16. setplayercolor(id,color)
  17. {
  18. id += 0
  19. color +=0
  20.  
  21. if(!checkHandles())
  22. return
  23.  
  24. VarSetCapacity(bla, 4, 0)
  25. NumPut(color,bla,0,"UInt")
  26.  
  27. writeRaw(hGTA, dwSAMP + 0x216378 + 4*id, &bla, 4)
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement