24.05.2016, 20:29
Do you want the market to show whenever the player shoots? Even if the no one gets hit?
If so, loop using for or foreach, and get every player that isn't on the shooter's team.
If so, loop using for or foreach, and get every player that isn't on the shooter's team.
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { for (new i = 0, j = GetPlayerPoolSize(); i != j; i++) { if (gTeam[playerid] != gTeam[i]) { // ... } } return 1; }