Advertisement
Guest User

bsp

a guest
Jan 4th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. new Float:armor;
  2. GetPlayerArmour(playerid,armor);
  3. format(string,sizeof(string),"%f",armor); // Armour in Prozent
  4. PlayerTextDrawSetString(playerid,..[playerid], (!armor) ? ("Keine Weste") : (string));
  5. switch(armor){
  6. case 80 .. 100: zst ="Armour: ~g~Gut";
  7. case 50 .. 79: zst="Armour: ~y-benutzt";
  8. case 20 .. 49: zst="Armour: ~r~alt";
  9. case 1 .. 19: zst="Armour: ~r~kaputt";
  10. }
  11. PlayerTextDrawSetString(playerid,..[playerid],((!armor) ? ("Armour: n/a") : (zst)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement