receiving specific pdata from player

New Member
Joined
Oct 8, 2011
Messages
21
Best answers
0
Hello, could anyone tell me how could I form such a function to retrieve current pdata in action from player. i.e:

set_pdata_int(client,the number,value)

the number is what I need to get, and the only way I can get it is to either test from 0 500+ and keep checking whether its correct, or forming this function to automatically retrieve the number while I'm charging a basic attack. ( i need the pdata number when player is shooting the attack )
 
NOT IN THE MANGA™
★ Black Lounger ★
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Jan 5, 2008
Messages
3,276
Best answers
0
Location
Lithuania
Code:
stock bool:GetClientShooting(client)
{
    return !get_pdata_int(client, 464);
}
You can find quite a few of them in EvolutionX.Core.sma which comes with AMXX's ESF package.
 
Last edited:
New Member
Joined
Oct 8, 2011
Messages
21
Best answers
0
Hmm, I've tried using this, but it returns 0 - it doesn't apply the effect, why?
 
NOT IN THE MANGA™
★ Black Lounger ★
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Jan 5, 2008
Messages
3,276
Best answers
0
Location
Lithuania
Are you using my stock or the number? Because it apparently returns 0 when the player is shooting (see the ! in my code).
 
NOT IN THE MANGA™
★ Black Lounger ★
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Jan 5, 2008
Messages
3,276
Best answers
0
Location
Lithuania
Why would you change the value of that PData?
 

Users who are viewing this thread

Top Bottom