PDA

View Full Version : Help (Killing Medals)


ServerScripter
27/08/2011, 10:37 PM
hi , i want someone Help Me or Make a Killing Meddals
1kill=First Kill
2kill=Double Kill
3kill=Killing Spree
4kill=Monster
5kill=Hitman
6kill=Kill Dead
7kill=Head Shooter
8kill=God Like

I searched but the scripts don't work for me , so , i need your Help (i want a small script + Unsefull ;) )

Amel_PAtomAXx
27/08/2011, 10:41 PM
I Didn't made this , i dont know who is :(

#include <a_samp>

new Kills[MAX_PLAYERS];
new st[128];
new name[24];
new Killername[24];

#define COLOR_YELLOW 0xFFFF00AA

public OnPlayerDeath(playerid,killerid,reason)
{
GetPlayerName(playerid,name,sizeof(name));
GetPlayerName(killerid,Killername,sizeof(Killernam e));
if(Kills[playerid] > 2)
{
GivePlayerMoney(killerid,3000*GetPlayerWantedLevel (playerid));
format(st,sizeof(st),"%s was awarded %d for killing %s wanted level %d",Killername,3000*GetPlayerWantedLevel(playerid),na me,GetPlayerWantedLevel(playerid));
SendClientMessageToAll(COLOR_YELLOW,st);
}
Kills[playerid] = 0;
Kills[killerid]++;
SetPlayerWantedLevel(playerid,0);
if(Kills[killerid] == 3)
{
format(st,sizeof(st),"~S~%s is ~b~dominating!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,1);
}
if(Kills[killerid] == 5)
{
format(st,sizeof(st),"~S~%s is on a~r~killing spree!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,2);
}
if(Kills[killerid] == 8)
{
format(st,sizeof(st),"~S~%s ~b~Monster Kill!!!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,3);
}
if(Kills[killerid] == 11)
{
format(st,sizeof(st),"~S~%s is ~r~Godlike!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,4);
}
if(Kills[killerid] == 15)
{
format(st,sizeof(st),"~S~%s is ~R~Wiked Sick!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,5);
}
if(Kills[killerid] == 18)
{
format(st,sizeof(st),"~S~%s ~R~HOLY ~B~SHIT!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,6);
}
return 1;
}

ServerScripter
27/08/2011, 10:55 PM
Thank you a lot ! i will Put it now

Amel_PAtomAXx
27/08/2011, 11:09 PM
oh , i forgot to edit it for ya , take this :

#include <a_samp>

new Kills[MAX_PLAYERS];
new st[128];
new name[24];
new Killername[24];

#define COLOR_YELLOW 0xFFFF00AA

public OnPlayerDeath(playerid,killerid,reason)
{
GetPlayerName(playerid,name,sizeof(name));
GetPlayerName(killerid,Killername,sizeof(Killernam e));
if(Kills[playerid] > 2)
{
GivePlayerMoney(killerid,3000*GetPlayerWantedLevel (playerid));
format(st,sizeof(st),"%s was awarded %d for killing %s wanted level %d",Killername,3000*GetPlayerWantedLevel(playerid),na me,GetPlayerWantedLevel(playerid));
SendClientMessageToAll(COLOR_YELLOW,st);
}
Kills[playerid] = 0;
Kills[killerid]++;
SetPlayerWantedLevel(playerid,0);
if(Kills[killerid] == 1)
{
format(st,sizeof(st),"%s is on First Kill!",Killername);
SendClientMessageToAll(0xFFFFFFFF,st);
SetPlayerWantedLevel(killerid,1);
}
if(Kills[killerid] == 2)
{
format(st,sizeof(st),"%s is on Double Kill!",Killername);
SendClientMessageToAll(0xFFFFFFFF,st);
SetPlayerWantedLevel(killerid,2);
}
if(Kills[killerid] == 3)
{
format(st,sizeof(st),"%s is on Killing Spree!",Killername);
SendClientMessageToAll(0xFFFFFFFF,st);
SetPlayerWantedLevel(killerid,3);
}
if(Kills[killerid] == 4)
{
format(st,sizeof(st),"%s is on Monster Kill!",Killername);
SendClientMessageToAll(0xFFFFFFFF,st);
SetPlayerWantedLevel(killerid,4);
}
if(Kills[killerid] == 5)
{
format(st,sizeof(st),"%s is Hitman!",Killername);
SendClientMessageToAll(0xFFFFFFFF,st);
SetPlayerWantedLevel(killerid,5);
}
if(Kills[killerid] == 6)
{
format(st,sizeof(st),"%s is on Kill Dead!",Killername);
SendClientMessageToAll(0xFFFFFFFF,st);
SetPlayerWantedLevel(killerid,6);
}
if(Kills[killerid] == 7)
{
format(st,sizeof(st),"%s is Head Shooter!",Killername);
SendClientMessageToAll(0xFFFFFFFF,st);
SetPlayerWantedLevel(killerid,7);
}
if(Kills[killerid] == 8)
{
format(st,sizeof(st),"%s is GodLike!",Killername);
SendClientMessageToAll(0xFFFFFFFF,st);
SetPlayerWantedLevel(killerid,8);
}
return 1;
}

0_o
27/08/2011, 11:13 PM
Lol, You Mean KillStreak?