Jump to content
  • 0

Ajutor comanda


Tikitaka

Question

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
Link to comment
Share on other sites

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.