31.05.2012, 02:53
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
AntiDeAMX()
{
new a[][] =
{
"Unarmed (Fist)",
"Brass K"
};
#pragma unused a
}
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(weaponid==4)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(GetPlayerWeapon(issuerid) == 4)
{
SetPlayerDrunkLevel(playerid, 3000);
ApplyAnimation(playerid, "SWEET", "LaFin_Sweet", 4.0, 0, 1, 1, 20, 0);
SetPlayerHealth(playerid, health-(health/2));
SendClientMessage(playerid, 0x339900AA, "ЎEstбs muy herido! te han apuсalado fuertemente.");
}
if(weaponid==30)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(GetPlayerWeapon(issuerid) == 30)
{
SetPlayerDrunkLevel(playerid, 3000);
ApplyAnimation(playerid, "SWEET", "LaFin_Sweet", 4.0, 0, 1, 1, 20, 0);
SetPlayerHealth(playerid, health-80);
SendClientMessage(playerid, 0x339900AA, "ЎEstбs muy herido! te han disparado.");
}
if(weaponid==31)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(GetPlayerWeapon(issuerid) == 31)
{
SetPlayerDrunkLevel(playerid, 3000);
ApplyAnimation(playerid, "SWEET", "LaFin_Sweet", 4.0, 0, 1, 1, 20, 0);
SetPlayerHealth(playerid, health-80);
SendClientMessage(playerid, 0x339900AA, "ЎEstбs muy herido! te han disparado.");
}
if(weaponid==25)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(GetPlayerWeapon(issuerid) == 25)
{
SetPlayerDrunkLevel(playerid, 3000);
ApplyAnimation(playerid, "SWEET", "LaFin_Sweet", 4.0, 0, 1, 1, 20, 0);
SetPlayerHealth(playerid, health-60);
SendClientMessage(playerid, 0x339900AA, "ЎEstбs muy herido! te han disparado.");
}
if(weaponid==27)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(GetPlayerWeapon(issuerid) == 27)
{
SetPlayerDrunkLevel(playerid, 3000);
ApplyAnimation(playerid, "SWEET", "LaFin_Sweet", 4.0, 0, 1, 1, 20, 0);
SetPlayerHealth(playerid, health-60);
SendClientMessage(playerid, 0x339900AA, "ЎEstбs muy herido! te han disparado.");
}
if(weaponid==29)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(GetPlayerWeapon(issuerid) == 29)
{
SetPlayerDrunkLevel(playerid, 3000);
ApplyAnimation(playerid, "SWEET", "LaFin_Sweet", 4.0, 0, 1, 1, 20, 0);
SetPlayerHealth(playerid, health-60);
SendClientMessage(playerid, 0x339900AA, "ЎEstбs muy herido! te han disparado.");
}
if(weaponid==22)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(GetPlayerWeapon(issuerid) == 22)
{
SetPlayerDrunkLevel(playerid, 3000);
ApplyAnimation(playerid, "SWEET", "LaFin_Sweet", 4.0, 0, 1, 1, 20, 0);
SetPlayerHealth(playerid, health-30);
SendClientMessage(playerid, 0x339900AA, "ЎEstбs muy herido! te han disparado.");
}
if(weaponid==23)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(GetPlayerWeapon(issuerid) == 23)
{
SetPlayerDrunkLevel(playerid, 3000);
ApplyAnimation(playerid, "SWEET", "LaFin_Sweet", 4.0, 0, 1, 1, 20, 0);
SetPlayerHealth(playerid, health-30);
SendClientMessage(playerid, 0x339900AA, "ЎEstбs muy herido! te han disparado.");
}
}
}
}
}
}
}
}
}
}