Mikolaj
Banned User
- Joined
- Jun 11, 2010
- Messages
- 92
- Reaction score
- 2
Mam taki kod:
Dodaje on 10creditsów każdemu graczowi.
A ja bym chciał że by było takie okienko i wpisywało by się nazwe gracza i dodwało 10 credistów.
A jeśli da się jeszcze to liczbe creditsow...
@edit
Da się coś takiego zrobić? :d
Mógłby ktoś to wykonać? ;d
PHP:
include("_include-config.php");
include("data/names.php");
if(! check_login()) {
header("Location: login.php");
exit;
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="<? echo $sitelink;?>/layout/5/css/css.css"></head>
<body style="margin: 0px;">
<?
include "settings.php";
?>
<?
$data2 = mysql_query("SELECT * FROM `users` WHERE `login`='$data->login'");
$data = mysql_fetch_object($data2);
include("settings.php");
?>
<?
if($data->login == $admin || $data->hulpadmin == 1 || $data->admin == 1) {
?>
<?php
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`+'10'");
}
?>
<div class="title_bg">
<div class="title">Donate Game Credits</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<table width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list">
<tr>
Game Credits are donated
</tr>
</table>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
A ja bym chciał że by było takie okienko i wpisywało by się nazwe gracza i dodwało 10 credistów.
A jeśli da się jeszcze to liczbe creditsow...
@edit
Da się coś takiego zrobić? :d
Mógłby ktoś to wykonać? ;d
Last edited: