Jump to content
  • 0

Cum fac un sendclientmessage


Ch1NeZu

Question

Salut am si eu o intrebare.... cum fac ca atunci cand un player a fost omorat de alt player sa ii arate

"Ai fost omorat de ... cu ..."

de exemplu Vasile il omoara pe ion cu un deagle lu Ion sa ii arate

"Ai fost omorat de Vasile cu Deagle"

sau daca il omoara cu pumni sa ii arate

"Ai fost omorat de Vasile cu Pumni"

Se poate asa ceva ?

Samp.OnlyPro.ro - RolePlay - Join Us !

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

http://wiki.sa-mp.com/wiki/GetWeaponName

Are ce ai cerut..

public OnPlayerDeath(playerid,killerid,reason)

{

    new gunname[32], string[64], fName[MAX_PLAYER_NAME];

    GetWeaponName(reason,gunname,sizeof(gunname));

    GetPlayerName(playerid,fName,MAX_PLAYER_NAME);

    format(string,sizeof(string),"Ai fost omorat de %s cu %s.",fName,gunname);

    SendClientMessagel(playerid,0xFFFFFFAA,string);

    return 1;

}

Link to comment
Share on other sites

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.