Raised This Month: $ Target: $400
 0% 

[INSURGENCY] Supply Modification Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 01-14-2021 , 08:45   Re: [INSURGENCY] Supply Modification Plugin
Reply With Quote #1

PHP Code:
#pragma semicolon 1
#pragma newdecls required

int
    m_nAvailableTokens
,
    
m_nRecievedTokens;

public 
void OnPluginStart()
{
    
m_nAvailableTokens FindSendPropInfo("CINSPlayer""m_nAvailableTokens");
    
m_nRecievedTokens FindSendPropInfo("CINSPlayer""m_nRecievedTokens");
}
...
stock void SomeFunction(int client)
{
    ...
    
int available GetEntData(clientm_nAvailableTokens), total GetEntData(clientm_nRecievedTokens);
    ...

__________________
Grey83 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode