Hallo,
ich habe einen Textdraw, welcher TextDrawSetPreviewModel benutzt. Leider wird das ganze nicht aktualisiert (Er soll die Waffe anzeigen, die der Spieler in der Hand hält).
Hier mal mein Code:
Weapon = GetPlayerWeapon(playerid);
if(Weapon == 0) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 321); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Fist
else if(Weapon == 14) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 325); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Flowers
else if(Weapon == 15) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 326); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Cane
else if(Weapon == 1) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 331); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Brass Knuckels
else if(Weapon == 2) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 333); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Golf Club
else if(Weapon == 3) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 334); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Nite Stick
else if(Weapon == 4) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 335); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Combat Knife
else if(Weapon == 5) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 336); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Baseball Bat
else if(Weapon == 6) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 337); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Shovel
else if(Weapon == 7) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 338); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Pool Cue
else if(Weapon == 8) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 339); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Katana
else if(Weapon == 9) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 341); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Chainsaw
else if(Weapon == 16) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 342); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Frag Grenade
else if(Weapon == 17) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 343); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Tear Gas Grenade
else if(Weapon == 18) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 344); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Molotov Cocktail
else if(Weapon == 22) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 346); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Colt 45
else if(Weapon == 23) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 347); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Silenced Pistol
else if(Weapon == 24) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 348); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Desert Eagle
else if(Weapon == 25) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 349); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Shotgun
else if(Weapon == 26) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 350); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Sawn-off Shutgun
else if(Weapon == 27) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 351); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Combat Shotgu (SPAS 12)
else if(Weapon == 28) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 352); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Micro Uzi
else if(Weapon == 29) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 353); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//MP5
else if(Weapon == 30) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 355); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//AK47
else if(Weapon == 31) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 356); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//M4A1
else if(Weapon == 33) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 357); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Country Rifle
else if(Weapon == 34) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 358); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Sniper Rifle
else if(Weapon == 35) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 359); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Rocket Launcher
else if(Weapon == 36) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 360); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Heat Seeking Rocket Launcher
else if(Weapon == 37) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 361); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Flamethrower
else if(Weapon == 38) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 362); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Minigun
else if(Weapon == 39) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 363); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Satchel Charges
else if(Weapon == 40) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 364); format(str,sizeof str," ",GetPlayerAmmo(playerid));}//Detonator
else if(Weapon == 41) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 365); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Spray Paint Can
else if(Weapon == 42) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 366); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Fire Extinguisher
else if(Weapon == 43) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 367); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//Camera
else if(Weapon == 32) { PlayerTextDrawSetPreviewModel(playerid, igInfo3[playerid], 372); format(str,sizeof str,"%d Schuss",GetPlayerAmmo(playerid));}//TEC-9
Warum macht er das, bzw ist es möglich das ganze zu verändern?
lg