28.03.2011, 18:06
So i want to make, when a player writes a command, it should show after then when somebody dies, that player killed him..
Example:
Example:
pawn Код:
new murderer[MAX_PLAYERS];
pawn Код:
if (strcmp("/rofl", cmdtext, true, 10) == 0)
{
murderer[playerid] = 1;
return 1;
}
pawn Код:
// NOW IN NEED HELP IN THIS LINE, killer should be that player who wrote /rofl
public OnPlayerDeath(playerid, killerid, reason)
{
if(murderer[playerid] == 1) //should here be killerid?
{
SendDeathMessage(killerid,playerid, reason);
}
return 1;
}