communication in general chat
#1

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
Reply
#2

Use the script request thread if you're not going to make any effort in trying it yourself
Reply
#3

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
Reply
#4

if not then willing to help please close topic: (
Reply
#5

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.

Reply
#6

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
Reply
#7

Replace %f with %.f
Reply
#8

thx all)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)