Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Gibt die Farbe des Namens zurück, so wie in /tab zu sehen
- getPlayerColor(playerid){
- if(!checkHandles())
- return false
- idColor := readDWORD(hGTA, dwSAMP + 0x216378 + 4 * playerid)
- return idColor
- }
- global oweaponNames := {0: "Faust", 1: "Schlagring", 2: "Golfschläger", 3: "Schlagstock", 4: "Messer", 5: "Baseballschläger", 6: "Schaufel", 7: "Billiardstock", 8: "Katana", 9: "Kettensäge", 10: "Lila Dildo", 11: "Dildo", 12: "Vibrator", 13: "Silber Vibrator", 14: "Blumen", 15: "Gehstock", 16: "Granate", 17: "Tränengas", 18: "Molotov Cocktail", 22: "Pistole", 23: "Schallgedämpfte Pistole", 24: "Desert Eagle", 25: "Shotgun", 26: "Abgesägte Shotgun", 27: "SPAZ", 28: "UZI", 29: "MP5", 30: "AK-47", 31: "M4", 32: "Tec-9", 33: "Rifle", 34: "Sniper", 35: "RPG", 36: "HS Rocket", 37: "Flammenwerfer", 38: "Minigun", 39: "Rucksackbombe", 40: "Zünmder", 41: "Spraycan", 42: "Feuerlöscher", 43: "Kamera", 44: "Nachtsichtgerät", 45: "Thermalsichtgerät", 46: "Fallschirm", 47: "Fake Pistol", 49: "Fahrzeug", 50: "Rotorblätter", 51: "Explosion", 53: "Ertrunken", 54: "Fallschaden", 255: "Selbstmord"}
- ;Gibt die gesamte Munition wieder, InClip die Munition im Magazin
- getDeagle(InClip = false) {
- dwLocalPED := readDWORD(hGTA, 0xB6F5F0)
- if(InClip)
- return readDWORD(hGTA, dwLocalPED + 0x5E0)
- else
- return readDWORD(hGTA, dwLocalPED + 0x5E4)
- }
- getShotgun(InClip = false) {
- dwLocalPED := readDWORD(hGTA, 0xB6F5F0)
- if(InClip)
- return readDWORD(hGTA, dwLocalPED + 0x5FC)
- else
- return readDWORD(hGTA, dwLocalPED + 0x600)
- }
- getMP5(InClip = false) {
- dwLocalPED := readDWORD(hGTA, 0xB6F5F0)
- if(InClip)
- return readDWORD(hGTA, dwLocalPED + 0x618)
- else
- return readDWORD(hGTA, dwLocalPED + 0x61C)
- }
- getM4(InClip = false) {
- dwLocalPED := readDWORD(hGTA, 0xB6F5F0)
- if(InClip)
- return readDWORD(hGTA, dwLocalPED + 0x634)
- else
- return readDWORD(hGTA, dwLocalPED + 0x638)
- }
- getSniper(InClip = false) {
- dwLocalPED := readDWORD(hGTA, 0xB6F5F0)
- if(InClip)
- return readDWORD(hGTA, dwLocalPED + 0x650)
- else
- return readDWORD(hGTA, dwLocalPED + 0x654)
- }
- getAttackerWeapon() {
- if(!checkHandles())
- return 0
- dwLocalPED := readDWORD(hGTA, 0xB6F5F0)
- dwAttackerWeapon := readDWORD(hGTA, dwLocalPED + 0x760)
- return getWeaponByID(dwAttackerWeapon)
- }
- getWeaponByID(id) {
- if (oweaponNames[id])
- return oweaponNames[id]
- else
- return "Unbekannt"
- }
- getAttackerWeapon() {
- if(!checkHandles())
- return 0
- dwLocalPED := readDWORD(hGTA, 0xB6F5F0)
- dwAttackerWeapon := readDWORD(hGTA, dwLocalPED + 0x760)
- return getWeaponByID(dwAttackerWeapon)
- }
Add Comment
Please, Sign In to add comment