16.12.2011, 10:51
Some lines and code are not needed:
pawn Code:
// Explosive ammo for country rifle by Klabauter_Mann
// Please do not remove the credits or claim this script as your own
// You must use SA:MP 0.3d Pawno to compile this script
// Only for SA:MP 0.3d servers
#include <a_samp>
public OnFilterScriptInit()
{
print("\n-------------------------------------------------");
print(" Explosive ammo for country rifle by Klabauter_Mann");
print("-------------------------------------------------\n");
return true;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xC071FFFF, "This server is using Explosive Country Rifle Ammo");
SendClientMessage(playerid, 0xC071FFFF, "Made by Klabauter_Mann");
return true;
}
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(GetPlayerWeapon(playerid) == 33)
{
incindiary(damagedid);
}
return true;
}
stock incindiary(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
return CreateExplosion(x, y, z, 12, 1);
}