Facer`s
Новичок
Добрый день, хочу проверить одну штуку на авто. Сделал пустой сервер написал команду создания авто, а реакции на создание 0
Подключенные инклуды
Код:
new cmd[32], params[128];
sscanf(cmdtext, "s[32]s[128]", cmd, params);
if (strcmp("/veh", cmdtext, true, 10) == 0)
{
new model, col1 , col2;
if(sscanf(params, "ddd", model , col1 ,col2)) return SendClientMessage(playerid, COLOR_YELLOW, "Car: /veh [carid]");
//if(model < 400 || > 15146); // return SendClientMessage(playerid, COLOR_YELLOW, "неверно" );
if(model < 400 || col1 > 16146) return SendClientMessage(playerid, 0xBEBEBEFF, "неверно");
if(col1 < 0 || col1 > 126 || col2 < 0 || col2 > 126) return SendClientMessage(playerid, 0xBEBEBEFF, "неверно");
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x, y , z);
GetPlayerFacingAngle(playerid, a);
new veh = CreateVehicle(model, x, y , z, a, col1, col2, -1);
//CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, addsiren=0);
PutPlayerInVehicle(playerid, veh, 0);
return 1;
}
Код:
#include <a_mysql>
#include <sscanf2>
#include <a_vehicles>
