21.02.2011, 20:27
Hello today i just Bored and make one simple Filterscript.
i have see the gamerX server when the player Died then The Pickup Droped by player Death on the place..
Feature:
Function OnplayerDeath Only ...
Free Use AS FILTERSCRIPT OR GAMEMODE just copy the code to your gamemode.
.When Then Player Death the weapons droped by player death on the place,..where is
player has died....Going To Pickup it you will get Weapons and money from the pickup
PAWN CODE:
ScreenShot:
![](/imageshack/img517/8012/duder.png)
Free to comment it. ..
Known Bugs: Not. have tested it,
DOWNLOAD:
http://up.ht/ganC6B
i have see the gamerX server when the player Died then The Pickup Droped by player Death on the place..
Feature:
Function OnplayerDeath Only ...
Free Use AS FILTERSCRIPT OR GAMEMODE just copy the code to your gamemode.
.When Then Player Death the weapons droped by player death on the place,..where is
player has died....Going To Pickup it you will get Weapons and money from the pickup
PAWN CODE:
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_RED 0xAA3333AA
// onplyaerdeath function
new PickupPlayerDeath1;
new PickupPlayerDeath2;
new PickupPlayerDeath3;
//----------------------
public OnFilterScriptInit()
{
print("\n--------------------------");
print(" FILTERSCRIPT BY DR.GHOST");
print("---------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
PickupPlayerDeath1 = CreatePickup(1550, 3,X+2,Y,Z);
PickupPlayerDeath2 = CreatePickup(353, 3,X+4,Y,Z);
PickupPlayerDeath3 = CreatePickup(337, 3,X+5,Y,Z);
GameTextForPlayer(playerid,"~r~L~b~O~r~L Y~Y~O~b~U ~r~D~b~I~g~E~y~D!!!",5000,5);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/kill", true) == 0)
{
SetPlayerHealth(playerid,0.0);
return 1;
}
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
// Has testing when player death droped weapons.
if(pickupid == PickupPlayerDeath1)
{
GivePlayerMoney(playerid,15080);
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
DestroyPickup(PickupPlayerDeath1);
}
if(pickupid == PickupPlayerDeath2)
{
GivePlayerWeapon(playerid,29,9999);
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
DestroyPickup(PickupPlayerDeath2);
}
if(pickupid == PickupPlayerDeath3)
{
GivePlayerWeapon(playerid,6,9999);
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
DestroyPickup(PickupPlayerDeath3);
}
return 1;
}
ScreenShot:
![](/imageshack/img517/8012/duder.png)
Free to comment it. ..
Known Bugs: Not. have tested it,
DOWNLOAD:
http://up.ht/ganC6B