/kill [IS that Bug]?
#6

Код:
    if(strcmp(cmd,"/kill",true) == 0)
    {
        SetPlayerHealth(playerid, 0);
        return 1;
    }
public OnPlayerDeath(playerid, killerid, reason)
{
	//Killingspree
    new str[ 256 ], KillerName[MAX_PLAYER_NAME];
    GetPlayerName(killerid, KillerName, sizeof(KillerName));
    //vehicle destroy
    SetVehicleToRespawn(GetPlayerVehicleID(playerid));
    //end veh destroy
    //End KS
    GodMode[playerid] = 0;
    SendDeathMessage(killerid, playerid, reason);
    if(killerid != INVALID_PLAYER_ID)
    {
   	    TotalKills[killerid]++;
        SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
        GameTextForPlayer(killerid,"~w~+1 Score~R~~N~+1 kill~N~ ~g~+1000$", 5000, 1);
        GivePlayerMoney(killerid, 1000);
        Streaks[killerid]++;
    if(Streaks[killerid] == 3) {
            format(str, sizeof(str), "%s {00FFEE}is Triple Kill  {FFAF00}(3 kills +3 Score!)", KillerName); //here, you're formatting the defined string and add the content (text)
            SendClientMessageToAll(0xADFF2FAA, str);
            SetPlayerScore(killerid, GetPlayerScore(killerid) + 2);
    }
    if(Streaks[killerid] == 5) {
            format(str, sizeof(str), "%s {F81414}is Killing Spree {FFAF00}(5 Kills +5 Score!!)", KillerName); //got no creativity lmao lol//here, you're formatting the defined string and add the content (text)
            SendClientMessageToAll(0xADFF2FAA, str);
            SetPlayerScore(killerid, GetPlayerScore(killerid) + 4);
    }
    if(Streaks[killerid] == 10) {
            format(str, sizeof(str), "%s {B8FF02}is UNSTOPPABLE {FFAF00}(10 Kills +10 Score!!!)", KillerName); //got no creativity lmao lol//here, you're formatting the defined string and add the content (text)
            SendClientMessageToAll(0xADFF2FAA, str);

    }
    }
    TotalDeaths[playerid]++;
    SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
    GivePlayerMoney(playerid, -1000);
    GameTextForPlayer(playerid,"~R~W~B~A~G~S~W~T~P~E~G~D~N~~N~~N~~N~~N~~R~Rest ~W~In ~g~PEACE", 3000, 5);
    return 1;
}
Reply


Messages In This Thread
/kill [IS that Bug]? - by MahdiGames - 28.01.2014, 22:25
Re: /kill [IS that Bug]? - by [KHK]Khalid - 28.01.2014, 22:35
Re: /kill [IS that Bug]? - by MahdiGames - 28.01.2014, 23:30
Re: /kill [IS that Bug]? - by MahdiGames - 28.01.2014, 23:34
Re: /kill [IS that Bug]? - by [KHK]Khalid - 28.01.2014, 23:51
Re: /kill [IS that Bug]? - by MahdiGames - 29.01.2014, 07:59
Re: /kill [IS that Bug]? - by KatieNGG - 29.01.2014, 08:45

Forum Jump:


Users browsing this thread: 1 Guest(s)