Fixed GOD in-game positions for TFS 0.2 and 1.0. Fixes issue #11

This commit is contained in:
Stefan Brannfjell 2014-01-29 22:10:22 +01:00
parent 1e3461314b
commit 4bb35904bf

View File

@ -687,6 +687,8 @@ function set_ingame_position($name, $acctype) {
$group_id = 2;
if ($acctype == 1) {
$group_id = 1;
} elseif ($acctype == 6) {
$group_id = 3;
}
mysql_query("UPDATE `accounts` SET `type` = '$acctype' WHERE `id` =$acc_id;");
mysql_query("UPDATE `players` SET `group_id` = '$group_id' WHERE `id` =$char_id;");