game/_incl_data/class/dnaction/101/viboina4.php

19 lines
563 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
if( isset($s[1]) && $s[1] == '101/viboina4' ) {
/*
Выбоина
* Телепортирует на необходимую клетку х 4 , у 27
*/
//Все переменные сохранять в массиве $vad !
$vad = array(
'go' => true
);
if( $vad['go'] == true ) {
mysql_query('UPDATE `stats` SET `x` = "4",`y` = "27",`s` = "2" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$r = 'Вы перешли на другую сторону завала';
echo '<script>location.href="main.php"</script>';
}
unset($vad);
}
?>