Advertisement
Yton

Untitled

Aug 15th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  2. {
  3. if (newkeys & KEY_SPRINT)
  4. {
  5. new skaicius;
  6. skaicius += 10;
  7. new string[20];
  8. new Float:amount;
  9.  
  10. amount = (427.0 + skaicius * 0.98);
  11. TextDrawTextSize(horTD[2], amount, 0.0);
  12. TextDrawShowForPlayer(playerid, horTD[2]);
  13. format(string,sizeof(string), "%d", skaicius);
  14. TextDrawSetString(horTD[2], string);
  15. }
  16. return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement