- 0
Death System ca pe LS:RP
-
Similar Content
-
- 0 replies
- 190 views
-
fish system
By ionutadvv,
- 2 replies
- 1.654 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
By ionutadvv,
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
valelele
Am incercat sa fac un Death System ca pe LS:RP.
Gen: cand un player trage intr-un player iar acela care sufera daune are hp-ul sub 35 si nu este mort sa il dea in Injury System si sa cada direct pe jos.
Asta cred ca am facut bine, punand la OnPlayerUpdate:
OnPlayerUpdate{ if(health < 35 && GetPVarInt(playerid, "Dead") == 0) { DoInjured(playerid); } } forward DoInjured(playerid); public DoInjured(playerid) { new Float:x, Float:y, Float:z; ApplyAnimationEx(playerid, "WUZI", "CS_Dead_Guy", 4.0, 0, 1, 1, 1, 0); ResetPlayerWeapons(playerid); GameTextForPlayer(playerid, "~b~BRUTTALY WOUNDED", 5000, 1); SetPlayerHealthEx(playerid,50.0); new stringdamage[128]; new stringdamage2[256]; GetPlayerPos(playerid, x, y, z); format(stringdamage, sizeof(stringdamage), "(( Has been injured %d times, /damages %d for more information. ))", CountDamages(playerid), playerid); strcat(stringdamage, stringdamage2); PlayerInfo[playerid][pInjuriesText] = CreateDynamic3DTextLabel(stringdamage, COLOR_ERROR, x, y, z, 25.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 20.0); SetPVarInt(playerid, "Dead", 10); return 1; }Iar cand acel player care a tras sa se apropie de cel care e in Injury si trage in el, ala de pe jos sa nu ia damage, cum sa fac asta?
Am facut doar la OnPlayerTakeDamage:
1 answer to this question
Recommended Posts