
06-11-2007, 02:29 AM
|
|
|
Join Date: Aug 2006
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by SilverVice
Ok I?ve connected everything with ibProArcade and it work great. But I have a question. Can I let the guests play at the arcade? Because when they play it says ?you don?t have enough
money?
Any ways to give guests some money or buypass the plugin?
The plugin looks like this.
PHP Code:
$amount = '1';
if (($vbulletin->userinfo[$vbulletin->options['icashf']] - $amount) < 0) {
eval(standard_error(fetch_error('error_cash_arcade')));
}
$vbulletin->db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['icashf']}={$vbulletin->options['icashf']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'");
Can you suggest me a conditional too ignore the plugin if ?guest? ?
Thanks
|
Any idea will be appreciated.
|