Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getplayercolor(id)
- {
- id += 0
- if(!checkHandles())
- return -1
- color := readDWORD(hGTA, dwSAMP + 0x216378 + 4*id)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- return color
- }
- setplayercolor(id,color)
- {
- id += 0
- color +=0
- if(!checkHandles())
- return
- VarSetCapacity(bla, 4, 0)
- NumPut(color,bla,0,"UInt")
- writeRaw(hGTA, dwSAMP + 0x216378 + 4*id, &bla, 4)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement