29.05.2010, 14:56
Here is a little tutorial about those 3 functions in the title , i know most people out there will just say its useless , but it's not for beginners
1.GivePlayerHealth :
Add anywhere in the script (Not in a callback)
2.GivePlayerArmour :
Add anywhere in the script (Not in a callback)
3.GivePlayerScore :
Add anywhere in the script (Not in a callback)
-------------------------------------------------------------------------------------------------------------------
Special Thanks To ViruZZzZ_ChiLLL For Testing The Codes ( I'm Not Home Atm
)
1.GivePlayerHealth :
Add anywhere in the script (Not in a callback)
pawn Код:
stock GivePlayerHealth(playerid,Float:Health)
{
new Float:health; GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,health+Health);
}
Add anywhere in the script (Not in a callback)
pawn Код:
stock GivePlayerArmour(playerid,Float:Armour)
{
new Float:armour; GetPlayerHealth(playerid,armour);
SetPlayerArmour(playerid,armour+Armour);
}
Add anywhere in the script (Not in a callback)
pawn Код:
stock GivePlayerScore(playerid,Score)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+Score);
}
Special Thanks To ViruZZzZ_ChiLLL For Testing The Codes ( I'm Not Home Atm
