16.10.2014, 18:56
pawn Код:
public OnPlayerDeath(playerid, killerid, reason){
SendDeathMessage(killerid,playerid,reason);
PlayerInfo[killerid][Kills] ++;
KillsSeguidos[killerid] ++;
PlayerInfo[playerid][Deaths] ++;
KillsSeguidos[playerid] = 0;
if(KillsSeguidos[killerid] == 1) {
TextDrawShowForPlayer(killerid,TextDraw[1]);
SetTimer("ApagaText1",1000,false);
}
switch(KillsSeguidos[killerid])
{
case 2: {
TextDrawSetString(TextDraw[2],"Double Kill!");
TextDrawShowForPlayer(killerid,TextDraw[2]);
}
case 3: {
TextDrawSetString(TextDraw[2],"Triple Kill!");
TextDrawShowForPlayer(killerid,TextDraw[2]);
}
}
SetTimer("SpreeKilling",5000,false);
SetTimer("ApagaTextSpree",2000,false);
return 1;
}