HELP MONEY FOR KILLER
#1

how to add here when player kill player he got 100 $

Код:
    SendDeathMessage(killerid, playerid, reason);

    new cash = random(100);
    format(gString, 100, "You have killed %s and got $%d and + 1 score!", PlayerName(playerid), cash);
    SendClientMessage(killerid, GREEN, gString);
    format(gString, 100, "You have been killed by %s!", PlayerName(killerid));
    SendClientMessage(playerid, RED, gString);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    GivePlayerMoney(playerid, cash);

    pInfo[playerid][Spawned]    = 0;
    pInfo[playerid][Deaths]++;
	if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)
	{
		pInfo[killerid][Kills]++;
	}
	return 1;
}
Reply


Messages In This Thread
HELP MONEY FOR KILLER - by Mijata - 18.01.2015, 22:56
Re: HELP MONEY FOR KILLER - by Schneider - 18.01.2015, 22:59
Re: HELP MONEY FOR KILLER - by Ironboy - 18.01.2015, 22:59
Re: HELP MONEY FOR KILLER - by Rockyyy - 18.01.2015, 23:00
Re: HELP MONEY FOR KILLER - by JaydenJason - 18.01.2015, 23:02
Re: HELP MONEY FOR KILLER - by Mijata - 18.01.2015, 23:06
Re: HELP MONEY FOR KILLER - by DanishHaq - 18.01.2015, 23:08
Re: HELP MONEY FOR KILLER - by Rockyyy - 18.01.2015, 23:10
Re: HELP MONEY FOR KILLER - by Mijata - 18.01.2015, 23:10

Forum Jump:


Users browsing this thread: 1 Guest(s)