Posts: 871
Threads: 114
Joined: May 2014
Hello can to help mee with a little scriptxD :P
I want to create if player is cordinate's x y z and will shot by gteam human setplayerhealth killerid 0.
But not killerid i want when take damage.
Posts: 871
Threads: 114
Joined: May 2014
Love you Bro
Thank you so mutch Best Player REPPED xD Thank You xD
Posts: 871
Threads: 114
Joined: May 2014
Bro and something work but have a bug.
I want to make if team zombie is in range point when player take damage kill dhat the take damage.
and and team human is in/out range point and shot zombie when zombie is in range point kill human.
PLEASE BRO HELP MEE I WILL REP YOU.
Posts: 1,349
Threads: 194
Joined: Jan 2014
Reputation:
0
what do u mean first eplain first part but i think u need to use isplayerinrangeof and an loop for team
Posts: 871
Threads: 114
Joined: May 2014
Hmm Look Bro.
If player is team zombie and is in rangepoint x y z. and take damage by team human set health of the human 0.
And Something.
This must work and if player in range point or out range point.
Posts: 1,241
Threads: 67
Joined: Dec 2013
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
PlayerShotPlayer[issuerid][playerid] = 1;
if(team[issuerid] == TEAM_HUMAN)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, Coordinates))
{
if(team[playerid] == TEAM_ZOMBIE)
{
SetPlayerHealth(playerid, 0);
}
}
}
Posts: 871
Threads: 114
Joined: May 2014
Quote:
Originally Posted by Kyance
Uh..
This?
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) { if(issuerid != INVALID_PLAYER_ID) { if(gTeam[issuerid] == TEAM_HUMAN) { if(IsPlayerInRangeOfPoint(issuerid, 5, /*Positions Here*/)) { SetPlayerHealth(issuerid, 0); new Float:hp; GetPlayerHealth(playerid, hp); SetPlayerHealth(playerid, hp+amount); } } } return 1; }
|
Its somethinglike this but this is if team human and is in range point and shot team zombie kill him.
i want it to
If player zombie and is in range point && get damage by team human set health of the human 0.
Understand ?