19.11.2016, 10:08
(
Последний раз редактировалось amirm3hdi; 19.11.2016 в 13:39.
)
Guys, I'm making a login/register system, so far it's going well,
About PHP version, I have Lampp/Xampp and also PHP 7 installed on Ubuntu latest.
It's really easier with PHP for logging in and signing up <3 less code :P
UPDATE:
I did the login/register system, working perfectly.
UPDATE:
Working around command text with params, hope it goes well.
Also I gave a question about spawning a vehicle:
How to check if vehicle is created?
I checked the return value of CreateVehicle, if is INVALID_VEHICLE_MODEL then vehicle didn't get created.
So how can I check if created in php?
About PHP version, I have Lampp/Xampp and also PHP 7 installed on Ubuntu latest.
It's really easier with PHP for logging in and signing up <3 less code :P
UPDATE:
I did the login/register system, working perfectly.
UPDATE:
Working around command text with params, hope it goes well.
Also I gave a question about spawning a vehicle:
PHP код:
CommandText::register(["/scar"], function ($player, $p, $params) {
$pos = $player->getPos();
$pos->a = $player->getFacingAngle();
$model = $params ? intval($model) : rand(400, 611);
if ($player->adminCar) {
$player->adminCar->destroy();
}
$player->adminCar = Vehicle::create($model, $pos->x, $pos->y, $pos->z, $pos->a, rand(128, 243), rand(128, 243));
$player->putInVehicle($player->adminCar);
});
I checked the return value of CreateVehicle, if is INVALID_VEHICLE_MODEL then vehicle didn't get created.
So how can I check if created in php?