[Ajuda] kill spree
#3

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;
}
sу estas a funcionar bem para quando es id 0 no servidor
Reply


Messages In This Thread
kill spree - by Lucas_HenryK - 16.10.2014, 18:00
Re: kill spree - by VeNuZ_ - 16.10.2014, 18:42
Re: kill spree - by Lucas_HenryK - 16.10.2014, 18:56

Forum Jump:


Users browsing this thread: 2 Guest(s)