Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Float:armor;
- GetPlayerArmour(playerid,armor);
- format(string,sizeof(string),"%f",armor); // Armour in Prozent
- PlayerTextDrawSetString(playerid,..[playerid], (!armor) ? ("Keine Weste") : (string));
- switch(armor){
- case 80 .. 100: zst ="Armour: ~g~Gut";
- case 50 .. 79: zst="Armour: ~y-benutzt";
- case 20 .. 49: zst="Armour: ~r~alt";
- case 1 .. 19: zst="Armour: ~r~kaputt";
- }
- PlayerTextDrawSetString(playerid,..[playerid],((!armor) ? ("Armour: n/a") : (zst)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement