Jump to content

Question

Posted

Salut, as vrea ca atunci cand un jucator e in masina si alt jucator trage in masina acestuia, sa ii apara un mesaj jucatorului din masina ca jucatorul cu numele x a tras in masina acestuia. Am incercat sa fac ca si mai jos dar imi da acelasi id, respectiv id-ul celui care da damage.

public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{    
    new string[128];
    foreach(Player, i)
        if(IsPlayerInVehicle(i, vehicleid)) {
        format(string, sizeof(string), "%s did damage to vehicle with id %d drove by player %s", GetName(playerid), vehicleid, GetName(i));
        SCMTA(-1, string);
    }
    return 1;    
}

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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.