Script: HOw player is dead
#2

do it like:
Код:
OnPlayerDeath(playerid, killerid, reason)
{
new string[200], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name)); GetPlayerName(killerid, name2, sizeof(name2));
if(reason == 0){
format(string, sizeof(string), "%s Killed %s with Fists", name2, name);
AdminMsg(string); //YOU NEED TO DEFINE THE ADMIN MESSAGE FIRST / REPLACE THIS WITH YOUR ADMINMSG CODE
}
else if(reason == 1){
format(string, sizeof(string), "%s Killed %s with Brass Knuckles", name2, name);
AdminMsg(string);
}else if(reason == 2){
.........
}
etc.
You can get the reason here:
https://sampwiki.blast.hk/wiki/Weapons

(the ID is = the reason)
Reply


Messages In This Thread
Script: HOw player is dead - by SworDDicK - 04.10.2010, 15:57
Re: Script: HOw player is dead - by Sascha - 04.10.2010, 16:25
Re: Script: HOw player is dead - by SworDDicK - 04.10.2010, 16:47
Re: Script: HOw player is dead - by Claude - 04.10.2010, 17:03
Re: Script: HOw player is dead - by SworDDicK - 04.10.2010, 17:59
Re: Script: HOw player is dead - by Sascha - 04.10.2010, 18:21

Forum Jump:


Users browsing this thread: 1 Guest(s)