SHOW:
|
|
- or go back to the newest paste.
| 1 | #include <a_samp> | |
| 2 | - | #include <sscanf2> |
| 2 | + | #include <progress> |
| 3 | - | #include <zcmd> |
| 3 | + | |
| 4 | - | #define COLOR_RED 0xFF0000FF |
| 4 | + | new Bar:vhealth[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
|
| 5 | - | #define Admin IsPlayerAdmin |
| 5 | + | forward ProgressBar(); |
| 6 | - | #define NewAmmoTime 1000 |
| 6 | + | |
| 7 | - | #define NewAmmoTime 1000 |
| 7 | + | |
| 8 | - | #define TakenHealthTime 1000 |
| 8 | + | |
| 9 | - | #define CheckPLayerAmmo |
| 9 | + | SetTimer("ProgressBar", 500, 1);
|
| 10 | - | #define TakenAmmoTime 1000 |
| 10 | + | return 1; |
| 11 | - | #define BanHackerTime 1000 |
| 11 | + | |
| 12 | - | #define BanDialog 0 |
| 12 | + | |
| 13 | - | #define BanPlayer false |
| 13 | + | public ProgressBar() |
| 14 | - | #define Website sampcss |
| 14 | + | |
| 15 | - | new target; |
| 15 | + | for(new playerid; playerid < MAX_PLAYERS; playerid++) |
| 16 | - | new admin; |
| 16 | + | {
|
| 17 | - | forward CheckNewHealth(); |
| 17 | + | new vehicleid; |
| 18 | - | forward CheckTakenHealth(); |
| 18 | + | if((vehicleid = GetPlayerVehicleID(playerid)) && vhealth[playerid] != INVALID_BAR_ID) |
| 19 | - | forward BanIfHacker(); |
| 19 | + | |
| 20 | - | #if defined FILTERSCRIPT |
| 20 | + | new Float:health; |
| 21 | GetVehicleHealth(vehicleid, health); | |
| 22 | SetProgressBarValue(vhealth[playerid], health); | |
| 23 | UpdateProgressBar(vhealth[playerid], playerid); | |
| 24 | - | return 1; |
| 24 | + | |
| 25 | } | |
| 26 | } | |
| 27 | - | public OnFilterScriptExit() |
| 27 | + | |
| 28 | public OnPlayerStateChange(playerid, newstate, oldstate) | |
| 29 | - | return 1; |
| 29 | + | |
| 30 | if(oldstate == PLAYER_STATE_DRIVER) | |
| 31 | {
| |
| 32 | - | #else |
| 32 | + | DestroyProgressBar(vhealth[playerid]); |
| 33 | vhealth[playerid] = INVALID_BAR_ID; | |
| 34 | - | main() |
| 34 | + | } |
| 35 | if(newstate == PLAYER_STATE_DRIVER) | |
| 36 | {
| |
| 37 | vhealth[playerid] = CreateProgressBar(548.5, 36.0, _, _, 0x00FF00FF, 1000.0); | |
| 38 | - | #endif |
| 38 | + | ShowProgressBarForPlayer(playerid, vhealth[playerid]); |
| 39 | } | |
| 40 | - | public OnGameModeInit() |
| 40 | + | return 1; |
| 41 | } | |
| 42 | - | return 1; |
| 42 | + | // Serios? Multumim Crazy pentru primul Anti-HH, aici dupa cate vezi e doar tehno redactare. In fine, oricum, ai dovedit in fata lui Alex cine e sefu. De acum nu-ti mai spus idea mea. Chiar nu ma asteptam sa am asa putin de modificat. Te-ai gandit la toate. ;) |