[FilterScript] Drinking blood knife[new]
#1

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 FloatHealth;
GetPlayerHealth(playerid, pHealth);
if(pHealth < 100.0) {
SetPlayerHealth(playerid, pHealth + 5.0);
SendClientMessage(playerid, 0xFFFFFFFF, "Drinking blood (HP)");
} else {
SetPlayerHealth(playerid, 100.0);
new FloatArmour;
GetPlayerArmour(playerid, pArmour);
SetPlayerArmour(playerid, pArmour + 5.0);
SendClientMessage(playerid, 0xFFFFFFFF, "Drinking blood (AR)");
}
}
}
return 1;
}

the smiling is ":"
Reply
#2

Very Simple
Reply
#3

It's not even a filterscript just a knife cmd and a function. How is it called a filterscript?
Reply
#4

LMAO, At least mention your code in a [code], Its not even a filterscript god damn it!
Reply
#5

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 FloatHealth;
GetPlayerHealth(playerid, pHealth);
if(pHealth < 100.0) {
SetPlayerHealth(playerid, pHealth + 5.0);
SendClientMessage(playerid, 0xFFFFFFFF, "Drinking blood (HP)");
} else {
SetPlayerHealth(playerid, 100.0);
new FloatArmour;
GetPlayerArmour(playerid, pArmour);
SetPlayerArmour(playerid, pArmour + 5.0);
SendClientMessage(playerid, 0xFFFFFFFF, "Drinking blood (AR)");
}
}
}
return 1;
}

the smiling is ":"
Please set in [Code]
Nice.
Reply
#6

[pawn.] [/pawn.]
Reply
#7

GivePlayerWeaqon ?Please fix your English.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)