09.11.2011, 12:15
after when i got my server portforwarded i got my friend to test something we were testing but if i kill him 3 times my samp-server.exe (black box thing) closes automaticaly.. i got killing spree thing.. anyone know what's the problem?
pawn Code:
public OnPlayerDeath(playerid, killerid, reason) {
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
#pragma unused string
GetPlayerName(playerid, pname, sizeof(pname));
KillingSpree[killerid] ++;
KillingSpree[playerid] = 0;
if(KillingSpree[killerid] == 3) {
SendClientMessage(playerid,COLOR_ORANGE,"%s is on killing spree!");
}
return 1;
}