/hits help please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /hits help please (
/showthread.php?tid=333867)
Remove pls -
WarriorEd22 - 13.04.2012
<Solved>
Re: /hits help please -
mineralo - 13.04.2012
use player info like
pawn Code:
enum pf
{
pHit
}
PlayerInfo[MAX_PLAYERS][pf];
Re: /hits help please -
WarriorEd22 - 13.04.2012
Quote:
Originally Posted by mineralo
use player info like
pawn Code:
enum pf { pHit } PlayerInfo[MAX_PLAYERS][pf];
|
Thank you kind sir but is there any easier way to do it with like the whole code? Thanks,
Re: /hits help please -
mineralo - 13.04.2012
yes, there are a lot ways, like make function to give hit
try this
pawn Code:
new HitP[MAX_PLAYERS];
stock RemovePlayerHit(playerid)
{
HitP[playerid] = 0;
return HitP[playerid];
}
stock GivePlayerHit(playerid,money)
{
HitP[playerid] = HitP[playerid] + money;
return HitP[playerid];
}
stock SetPlayerHit(playerid,money)
{
HitP[playerid] = money;
return HitP[playerid];
}
now you can use them function in your script