02.01.2009, 20:27
Its fixed :
this should work fine
Code:
public OnPlayerDeath(playerid, killerid, reason) { if(GetPlayerWeapon(killerid) == 38) { new string[128], player[MAX_PLAYER_NAME]; GetPlayerName(playerid, player, sizeof(player)); format(string, sizeof(string), "%s died! Server Banned his attacker (reason: Minigun)", player); SendClientMessageToAll(YELLOW, string); Ban(killerid); } return 1; }