Quote:
Originally Posted by nacho312
Ah, thank you  ,and there is no other way by registring native on goldenak's sma ? I want to add this item in another menu.
|
For using this native on any plugin just add this code in global var "native get_user_goldak(id)"
Code:
#define is_valid_connected(%1) (1 <= %1 <= get_maxplayers())
public plugin_natives()
{
register_native("get_user_goldak","native_get_user_goldak")
}
public native_get_user_goldak() {
new index = read_data(1)
if(!is_valid_connected(index))
return 0;
engclient_cmd(index, "weapon_ak47");
g_HasAk[index] = true
checkModel(index);
return 1;
}
__________________