communication in general chat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: communication in general chat (
/showthread.php?tid=71797)
communication in general chat -
odyvan - 03.04.2009
Please make the script:
Description:
If a player is killed then the deceased player goes to a chat message: You kill (player nick), he still % lives & % armor.
_________________________
I think everything is clear) and sorry for bad english translator for helping me)
_________________________
In advance thank
Re: communication in general chat -
[RP]Rav - 04.04.2009
Use the script request thread if you're not going to make any effort in trying it yourself
Re: communication in general chat -
odyvan - 04.04.2009
The matter is that I am 0 for pavno! Would ready) + there should be easy! Just at the point of death, the name and to check on the life and armor
Re: communication in general chat -
odyvan - 04.04.2009
if not then willing to help please close topic: (
Re: communication in general chat -
Backwardsman97 - 04.04.2009
Quote:
|
Originally Posted by odyvan
The matter is that I am 0 for pavno! Would ready) + there should be easy! Just at the point of death, the name and to check on the life and armor
|
Pavno? lol you mean pawn. Your English is kinda bad but it's easy enough to understand.
pawn Код:
//OnPlayerDeath
if((reason != 255) || (killerid != 255))
{
new string[128], pname[24], Float:phealth, Float:parmor;
GetPlayerName(killerid,pname,24);
GetPlayerHealth(killerid,phealth);
GetPlayerArmour(killerid,parmor);
format(string,128,"Killed by: %s who still has %f health and %f armor.",pname,phealth,parmor);
SendClientMessage(playerid,0x12B60AFF,string);
}
I think this will work.
Re: communication in general chat -
odyvan - 05.04.2009
Quote:
|
Originally Posted by backwardsman97
Quote:
|
Originally Posted by odyvan
The matter is that I am 0 for pavno! Would ready) + there should be easy! Just at the point of death, the name and to check on the life and armor
|
Pavno? lol you mean pawn. Your English is kinda bad but it's easy enough to understand.
pawn Код:
//OnPlayerDeath if((reason != 255) || (killerid != 255)) { new string[128], pname[24], Float:phealth, Float:parmor; GetPlayerName(killerid,pname,24); GetPlayerHealth(killerid,phealth); GetPlayerArmour(killerid,parmor); format(string,128,"Killed by: %s who still has %f health and %f armor.",pname,phealth,parmor); SendClientMessage(playerid,0x12B60AFF,string); }
I think this will work.
|
everything works but is a problem!
rather than write round of model 100 lives and 20 armor written billions
100.00000000000 health and 0.000000000 armour
91.000000000000 health and 24.000000000 armour
Re: communication in general chat -
Nubotron - 05.04.2009
Replace %f with %.f
Re: communication in general chat -
odyvan - 05.04.2009
thx all)