Jump to content

Question

Posted (edited)

Problema intalnita (descriere): Doresc sa fac ca atunci cand un player trage sa apara adminilor distanta dmg-ul si in cine traga, scriptul l-am facut, dar doresc sa apara adminilor doar cand scriu o comanda ex: (/dmg) si doar pe un anumit player. Deci vreau ca la comanda (/dmginfo <id>) sa apara adminului dmg pe care il da player pe care la scris la comanda.
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul: 

Asta se pune la onplayergivedamage

new stringRC[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];    new weaponname[24];
    GetPlayerName(playerid, attacker, sizeof (attacker));
    GetPlayerName(damagedid, victim, sizeof (victim));
    GetWeaponName(weaponid, weaponname, sizeof (weaponname));
    format(stringRC, sizeof(stringRC), "DMG: %s did %.0f damage to %s using weapon: %s", attacker, amount, victim, weaponname);
    ABroadCast(COLOR_YELLOW,stringRC,1);

Imagini / Video (optional):
Ati incercat sa rezolvati singur?:

Edited by Tikitaka

1 answer to this question

Recommended Posts

  • 0
Posted

Ceea ce ceri tu, e sa iti facem noi ca adminilor sa le apara dmg etc. Practic, tu ceri script din partea noastra, pentru a-ti finaliza proiectul.

 

Topic Inchis!

242086.png

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.