Olá DangerX,
Logo após o script:
elseif($buy_offer['type'] == 'redskull')
Coloque dentro do shopsystem.php:
elseif($buy_offer['type'] == 'blackskull')
{
$my_acc_id = $buy_player->getCustomField('id');
$dataget = $SQL->query('SELECT * FROM '.$SQL->tableName('players').' WHERE '.$SQL->fieldName('id').' = '.$my_acc_id.';')->fetch();
if($dataget['redskull'] >= '1' AND $dataget['online'] >= '0' AND $dataget['redskulltime'] > '0') {
$SQL->query('UPDATE players SET redskull=0, redskulltime=0 WHERE id='. $my_acc_id .';');
$account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']);
$user_premium_points = $user_premium_points - $buy_offer['points'];
$main_content .= '
<h2>
Black Skull Removed!
</h2>
<b>
Your black skull has been removed to the player '.$buy_player->getName().',
<br>
Now you have
<b>
'.$user_premium_points.' premium points
</b>.
<br>
<a href="index.php?subtopic=shopsystem">
GO TO MAIN SHOP SITE
</a>';
} else
{
$main_content .= '
<b>
'.$buy_player->getName().' has to be offline or have black skull to complete transaction!.
</b>
<br>
<a href="index.php?subtopic=shopsystem">
GO BACK
</a>';
}
}
Espero ter ajudado. :smile_positivo:


info
Grupo: Campones
Registrado: 17/07/10
Posts: 22
Reputação: 0
Glr Queria uma script igual ao do remover red skull soq no lugar do red skull seria black skull
Tem como fazer ?? Queria igual Mesmo la no shop admin tbm
Vou dar Umas Screen shots Para Vcs verem:
Obs:Essa imagem abaixo não é do meu site e sim de outro (queria igualzinho assin) Obivil ne ? pois se fosse meu n estaria pedindo.
Espero que mim ajudem glr isso não mim deicha dormir ¬¬
vlws
Editado Agosto 22 por DangerX