24.12.2011, 07:53
Holaa!, Este es mi primer FS que aporto, trata sobre un contador de kills mas los sonidos, multikill monsterkill ect...
Imбgenes...
* El gametext solo aparece en el holy shit.
Creditos:
DanielSNM: Creador original del FS
Chiino (yo): Modifique un par de cosas y puse los sonidos
gracias!
Imбgenes...
* El gametext solo aparece en el holy shit.
pawn Код:
#include <a_samp>
//Kills Nesesarios
#define MultiKill 3
#define KillingSpree 5
#define MonsterKill 8
#define LudicrousKill 12
#define HolyShit 20
#define COLOR_GREEN 0xFF0000AA
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Kills Counter By DanielSNM, Modificado por Chiino v2");
print("---(Ideal Para: DM)-------------------\n");
return 1;
}
new kills[MAX_PLAYERS];
new pname[24];
new string[256];
public OnPlayerSpawn(playerid)
{
kills[playerid]=0;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
kills[killerid]++;
if(kills[killerid]==MultiKill) {
GetPlayerName(killerid,pname,24);
format(string,256,">> %s Hizo MultiKill! (+500)",pname);
SendClientMessageToAll(COLOR_GREEN,string);
GivePlayerMoney(killerid,500);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
PlayAudioStreamForPlayer(i, "http://dl.dropbox.com/u/54330022/MultiKill.mp3");
}
}
}
if(kills[killerid]==KillingSpree) {
GetPlayerName(killerid,pname,24);
format(string,256,">> %s KillingSpree! (+1000)",pname);
SendClientMessageToAll(COLOR_GREEN,string);
GivePlayerMoney(killerid,1000);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
PlayAudioStreamForPlayer(i, "http://dl.dropbox.com/u/54330022/KillingSpree.mp3");
}
}
}
if(kills[killerid]==MonsterKill) {
GetPlayerName(killerid,pname,24);
format(string,256,">> %s Hizo M-M-M-MonsterKill! (+1500)",pname);
SendClientMessageToAll(COLOR_GREEN,string);
GivePlayerMoney(killerid,1500);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
PlayAudioStreamForPlayer(i, "http://dl.dropbox.com/u/54330022/Monster%20Kill.mp3");
}
}
}
if(kills[killerid]==LudicrousKill) {
GetPlayerName(killerid,pname,24);
format(string,256,">> %s hizo un L-L-L-LudicrousKill!!! (+2000)",pname);
SendClientMessageToAll(COLOR_GREEN,string);
GivePlayerMoney(killerid,2000);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
PlayAudioStreamForPlayer(i, "http://dl.dropbox.com/u/54330022/Ludicroskill.mp3");
}
}
}
if(kills[killerid]==HolyShit) {
GetPlayerName(killerid,pname,24);
format(string,256,">> %s Mato a 20 personas seguidas. HOLY SHIT!! (+2500)",pname);
SendClientMessageToAll(COLOR_GREEN,string);
format( string, sizeof(string), "~w~%s mato a 20 personas seguidas ~n~~p~holy shit!!", pname );
GameTextForAll( string, 5000, 3 );
GivePlayerMoney(killerid,2500);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
PlayAudioStreamForPlayer(i, "http://dl.dropbox.com/u/54330022/HolyShit.mp3");
}
}
}
return 1;
}
DanielSNM: Creador original del FS
Chiino (yo): Modifique un par de cosas y puse los sonidos
gracias!