19.01.2017, 07:06
Кикнуть игрока и вернуть 0, иначе инвалидный тюнинг синхронизируется и всех в стриме крашнет, вообще данное решение в simple моде всех адаптаций есть.
PHP Code:
//------------------------------------------------------------------------------------------------------
public OnVehicleMod(playerid, vehicleid, componentid) {
if (server_sa != server_type) {
// servers not have this, so player is chiter ant this may crash players
return false;
}
return true;
}
//------------------------------------------------------------------------------------------------------
public OnVehiclePaintjob(playerid, vehicleid, paintjobid) {
if (server_sa != server_type) {
// servers not have this, so player is chiter ant this may crash players
return false;
}
return true;
}
//------------------------------------------------------------------------------------------------------
public OnVehicleRespray(playerid, vehicleid, color1, color2) {
if (server_sa != server_type) {
// servers not have this, so player is chiter ant this may crash players
return false;
}
return true;
}