diff --git a/CHANGELOG.md b/CHANGELOG.md index b73c9b4..7dbb09b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ Changelog ========= +2014/11/11: +- Removed AMXNativeExists, RegisterAMXNative and CallAMXNative temporarly. +- Updated the PLUGIN to support SAMPGDK 4.(samp 0.3z r4) +- Updated the visual studio project files for visual studio 2013. +- Now, it's possible to register commands with the CMD class or Command class(alias). + 2013/06/12: - added AMXNativeExists, RegisterAMXNative and CallAMXNative (examples: http://forum.sa-mp.com/showpost.php?p=2565856&postcount=69) diff --git a/server-folder/php/core/bootstrap.php b/server-folder/php/core/bootstrap.php index 9a4da6b..0082991 100644 --- a/server-folder/php/core/bootstrap.php +++ b/server-folder/php/core/bootstrap.php @@ -7,7 +7,6 @@ set_include_path(get_include_path() . PATH_SEPARATOR . PHP_DIR . PATH_SEPARATOR . CORE_DIR); -require_once 'helpers.php'; require_once 'callbacks.php'; require_once 'modelevent.php'; require_once 'namedinstance.php'; diff --git a/server-folder/php/core/callbacks.php b/server-folder/php/core/callbacks.php index 074174a..531fe74 100644 --- a/server-folder/php/core/callbacks.php +++ b/server-folder/php/core/callbacks.php @@ -214,9 +214,8 @@ function OnRconLoginAttempt($ip, $playerid, $success) return Event::fireDefault("RconLoginAttempt", true, $ip, Player::find($playerid, true), $success); } -function OnUnoccupiedVehicleUpdate($vehicleid, $playerid, $passengerSeat) -{ - return Event::fireDefault("UnoccupiedVehicleUpdate", true, Vehicle::find($vehicleid), Player::find($playerid, true), $passengerSeat); +function OnUnoccupiedVehicleUpdate($vehicleid, $playerid, $passenger_seat, $newx, $newy, $newz, $velx, $vely, $velz) { + return Event::fireDefault("OnUnoccupiedVehicleUpdate", Vehicle::find($vehicleid), Player::find($playerid, true), $passenger_seat, $newx, $newy, $newz, $velx, $vely, $velz); } function OnVehicleDamageStatusUpdate($vehicleid, $playerid) @@ -257,4 +256,13 @@ function OnVehicleStreamIn($vehicleid, $forplayerid) function OnVehicleStreamOut($vehicleid, $forplayerid) { return Event::fireDefault("VehicleStreamOut", true, Vehicle::find($vehicleid), Player::find($forplayerid, true)); -} \ No newline at end of file +} + +function OnIncomingConnection($playerid, $ipaddress, $port) +{ + return Event::fireDefault("IncomingConnection", true, Player::find($playerid, true), $ipaddress, $port); +} + +function OnTrailerUpdate($playerid, $vehicleid) { + return Event::fireDefault("TrailerUpdate", true, Player::find($playerid, true), Vehicle::find($vehicleid)); +} diff --git a/server-folder/php/core/callbacks.txt b/server-folder/php/core/callbacks.txt index 9aafc12..c6363fe 100644 --- a/server-folder/php/core/callbacks.txt +++ b/server-folder/php/core/callbacks.txt @@ -48,4 +48,7 @@ OnVehiclePaintjob OnVehicleRespray OnVehicleSpawn OnVehicleStreamIn -OnVehicleStreamOut \ No newline at end of file +OnVehicleStreamOut +OnIncomingConnection +OnTrailerUpdate +OnUnoccupiedVehicleUpdate \ No newline at end of file diff --git a/server-folder/php/core/commandtext.php b/server-folder/php/core/commandtext.php index 1d0cd1d..e988317 100644 --- a/server-folder/php/core/commandtext.php +++ b/server-folder/php/core/commandtext.php @@ -1,6 +1,6 @@ id, $message, $time, $style); } + + public static function blockIpAddress($ipaddress, $timems) { + return BlockIpAddress($ipaddress, $timems); + } + + public static function unBlockIpAddress($ipaddress) { + return UnBlockIpAddress($ipaddress); + } }