AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to get value from other plugin? (https://forums.alliedmods.net/showthread.php?t=206524)

alter 01-23-2013 13:25

How to get value from other plugin?
 
For example in my plugin there is code.
PHP Code:

new bool:g_hasbazooka[33

How can i get this value
PHP Code:

if ( g_hasbazooka 

on other plugin?

Bos93 01-23-2013 13:34

Re: How to get value from other plugin?
 
PHP Code:

public plugin_natives()
    
register_native("get_user_bazooka""_get_user_bazooka_"1)

public 
_get_user_bazooka_pPlayer )
{
    return 
g_hasbazookapPlayer ]; 


Other plugin:

native get_user_bazooka( Index )


//code... if( get_user_bazooka( pPlayer ) ) ...


All times are GMT -4. The time now is 20:31.

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