Drinking blood knife[new] -
Ezzo - 02.05.2015
this is a FilterSCript
#include <a_samp>
#include <zcmd>
//------------------
CMD:dbk(playerid)
{
GivePlayerWeqpon(playerid,8,1);
SendClientMessage(playerid,0xFFFFFFFF,"you get drinking blood knife");
}
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
switch(weaponid) {
case 8 : {
new Float

Health;
GetPlayerHealth(playerid, pHealth);
if(pHealth < 100.0) {
SetPlayerHealth(playerid, pHealth + 5.0);
SendClientMessage(playerid, 0xFFFFFFFF, "Drinking blood (HP)");
} else {
SetPlayerHealth(playerid, 100.0);
new Float

Armour;
GetPlayerArmour(playerid, pArmour);
SetPlayerArmour(playerid, pArmour + 5.0);
SendClientMessage(playerid, 0xFFFFFFFF, "Drinking blood (AR)");
}
}
}
return 1;
}
the smiling is ":"
Re: Drinking blood knife[new] -
LMaxCo - 02.05.2015
Very Simple
Re: Drinking blood knife[new] -
J0sh... - 02.05.2015
It's not even a filterscript just a knife cmd and a function. How is it called a filterscript?
Re: Drinking blood knife[new] -
Clergy - 02.05.2015
LMAO, At least mention your code in a [code], Its not even a filterscript god damn it!
Re: Drinking blood knife[new] -
giorgosdim12 - 02.05.2015
Quote:
Originally Posted by Ezzo
this is a FilterSCript
#include <a_samp>
#include <zcmd>
//------------------
CMD:dbk(playerid)
{
GivePlayerWeqpon(playerid,8,1);
SendClientMessage(playerid,0xFFFFFFFF,"you get drinking blood knife");
}
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
switch(weaponid) {
case 8 : {
new Float  Health;
GetPlayerHealth(playerid, pHealth);
if(pHealth < 100.0) {
SetPlayerHealth(playerid, pHealth + 5.0);
SendClientMessage(playerid, 0xFFFFFFFF, "Drinking blood (HP)");
} else {
SetPlayerHealth(playerid, 100.0);
new Float  Armour;
GetPlayerArmour(playerid, pArmour);
SetPlayerArmour(playerid, pArmour + 5.0);
SendClientMessage(playerid, 0xFFFFFFFF, "Drinking blood (AR)");
}
}
}
return 1;
}
the smiling is ":"
|
Please set in [Code]
Nice.
Re: Drinking blood knife[new] -
Lacrim - 02.05.2015
[pawn.] [/pawn.]
Re: Drinking blood knife[new] -
shadowstorm - 02.05.2015
GivePlayerWeaqon ?Please fix your English.