01.01.2015, 16:22
..then you've probably used a different script than you've provided here:
..also: You've included zcmd which is not used at all, this will give errors to people who do not have that include.
Maybe you should keep scripting and learning a little bit more on your own before you release stuff that does not work properly.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerWeapon(killerid) == 38) // you check if the killer has a minigun, that's good.
{
if(IsPlayerAdmin(playerid)) // now you check if the player who got killed is rcon admin.
{
new hackername[MAX_PLAYER_NAME], str[128]; //
GetPlayerName(playerid, hackername, sizeof(hackername)); // you get the name of the person who GOT killed (not the killer).
format(str, sizeof(str), "{FF0000}ATTENTION: %s has been automaticlly reported by the server for using hacks[REASON: Minigun]", killerid); // The player who died is called a 'hacker'.
SendClientMessage(playerid, -1, str); // only if the player is rcon-admin he will get the (Wrong)message.
}
}
return 1;
}
Maybe you should keep scripting and learning a little bit more on your own before you release stuff that does not work properly.