Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if (newkeys & KEY_SPRINT)
- {
- TextDrawShowForPlayer(playerid, horTD[2]);
- SetTimerEx ( "hideTD" , 1000 , 1 , "i" , playerid );
- }
- return 1;
- }
- forward hideTD ( playerid );
- public hideTD ( playerid )
- {
- skaicius[playerid] += 100;
- new string[20];
- new Float:amount;
- TextDrawShowForPlayer(playerid, horTD[2]);
- amount = (427.0 + skaicius[playerid] * 0.98);
- TextDrawTextSize(horTD[2], amount, 0.0);
- TextDrawShowForPlayer(playerid, horTD[2]);
- format(string,sizeof(string), "%d", skaicius[playerid]);
- TextDrawSetString(horTD[2], string);
- {
- if(amount == (427.0 + 100 * 0.98)) SendClientMessage(playerid, 0xFFFFFFAA, "{E74C3C}progressbaras pilnas:");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment